Skip to content

Commit 0da8199

Browse files
committed
Fix after rebasing
1 parent c42c77b commit 0da8199

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_typeck/src/check/generator_interior.rs

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

src/test/ui/lint/must_not_suspend/ref-drop-tracking.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ error: reference to `Umm` held across a suspend point, but should not be
33
|
44
LL | let guard = &mut self.u;
55
| ^^^^^
6-
LL |
6+
LL |
77
LL | other().await;
88
| ------ the value is held across this suspend point
99
|

0 commit comments

Comments
 (0)