Skip to content

Commit 39e741f

Browse files
Normalize possibly unnormalized type in relate_type_and_user_type
1 parent 2316797 commit 39e741f

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_borrowck/src/type_check

1 file changed

+1
-0
lines changed

compiler/rustc_borrowck/src/type_check/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
482482
}
483483
trace!(?curr_projected_ty);
484484

485+
let a = self.normalize(a, locations);
485486
let ty = self.normalize(curr_projected_ty.ty, locations);
486487
self.relate_types(ty, v.xform(ty::Contravariant), a, locations, category)?;
487488

0 commit comments

Comments
 (0)