Ensure unsize method resolutions actually unsize

This was a typo when unsized method resolution was added, where the
adjustment was wrongly marked as an indirection. The enum is required so
that the code generation adjustment takes place.

Addresses #849
This commit is contained in:
Philip Herron 2022-04-08 15:16:28 +01:00
parent e43a5c5373
commit 8d3184e822
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ Adjuster::try_unsize_type (const TyTy::BaseType *ty)
TyTy::TyVar (slice_elem->get_ref ()));
context->insert_implicit_type (slice);
return Adjustment (Adjustment::AdjustmentType::INDIRECTION, slice);
return Adjustment (Adjustment::AdjustmentType::UNSIZE, slice);
}
static bool