File tree 1 file changed +4
-2
lines changed
compiler/rustc_trait_selection/src/traits
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1916,8 +1916,10 @@ fn assemble_candidates_from_impls<'cx, 'tcx>(
1916
1916
// Integers and floats are always Sized, and so have unit type metadata.
1917
1917
| ty:: Infer ( ty:: InferTy :: IntVar ( _) | ty:: InferTy :: FloatVar ( ..) ) => true ,
1918
1918
1919
- // type parameters, opaques, and unnormalized projections have pointer
1920
- // metadata if they're known (e.g. by the param_env) to be sized
1919
+ // Type parameters, opaques, and unnormalized projections have unit
1920
+ // metadata if they're known (e.g. by the param_env) to be sized.
1921
+ // If they're not known to be sized, then we normalize from
1922
+ // `Wrapper<Tail>::Metadata` to `Tail::Metadata` if able.
1921
1923
ty:: Param ( _) | ty:: Alias ( ..)
1922
1924
if self_ty != tail || selcx. infcx . predicate_must_hold_modulo_regions (
1923
1925
& obligation. with (
You can’t perform that action at this time.
0 commit comments