Fix after rebasing

This commit is contained in:
Eric Holk 2022-07-29 15:13:44 -07:00
parent c42c77bc7b
commit 0da81997a2
2 changed files with 2 additions and 2 deletions

View File

@ -584,7 +584,7 @@ fn check_must_not_suspend_ty<'tcx>(
}
// If drop tracking is enabled, we want to look through references, since the referrent
// may not be considered live across the await point.
ty::Ref(_region, ty, _mutability) if fcx.sess().opts.debugging_opts.drop_tracking => {
ty::Ref(_region, ty, _mutability) if fcx.sess().opts.unstable_opts.drop_tracking => {
let descr_pre = &format!("{}reference{} to ", data.descr_pre, plural_suffix);
check_must_not_suspend_ty(fcx, ty, hir_id, SuspendCheckData { descr_pre, ..data })
}

View File

@ -3,7 +3,7 @@ error: reference to `Umm` held across a suspend point, but should not be
|
LL | let guard = &mut self.u;
| ^^^^^
LL |
LL |
LL | other().await;
| ------ the value is held across this suspend point
|