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:
parent
e43a5c5373
commit
8d3184e822
|
@ -116,7 +116,7 @@ Adjuster::try_unsize_type (const TyTy::BaseType *ty)
|
||||||
TyTy::TyVar (slice_elem->get_ref ()));
|
TyTy::TyVar (slice_elem->get_ref ()));
|
||||||
context->insert_implicit_type (slice);
|
context->insert_implicit_type (slice);
|
||||||
|
|
||||||
return Adjustment (Adjustment::AdjustmentType::INDIRECTION, slice);
|
return Adjustment (Adjustment::AdjustmentType::UNSIZE, slice);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
|
|
Loading…
Reference in New Issue