Skip to content

Commit c59d33a

Browse files
committed
Add some missing normalization calls to fix #63154
1 parent cfb6d84 commit c59d33a

File tree

1 file changed

+3
-0
lines changed
  • src/librustc_mir/borrow_check/nll/type_check

1 file changed

+3
-0
lines changed

src/librustc_mir/borrow_check/nll/type_check/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1378,7 +1378,9 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
13781378
};
13791379

13801380
let place_ty = place.ty(body, tcx).ty;
1381+
let place_ty = self.normalize(place_ty, location);
13811382
let rv_ty = rv.ty(body, tcx);
1383+
let rv_ty = self.normalize(rv_ty, location);
13821384
if let Err(terr) =
13831385
self.sub_types_or_anon(rv_ty, place_ty, location.to_locations(), category)
13841386
{
@@ -1654,6 +1656,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
16541656
match *destination {
16551657
Some((ref dest, _target_block)) => {
16561658
let dest_ty = dest.ty(body, tcx).ty;
1659+
let dest_ty = self.normalize(dest_ty, term_location);
16571660
let category = match *dest {
16581661
Place {
16591662
base: PlaceBase::Local(RETURN_PLACE),

0 commit comments

Comments
 (0)