Skip to content
/ rust Public
forked from rust-lang/rust

Commit 3ae0239

Browse files
committed
Mark the tcx-ensure wrapper types with #[must_use]
1 parent 3581512 commit 3ae0239

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: compiler/rustc_middle/src/query/plumbing.rs

+2
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,13 @@ impl<'tcx> Deref for TyCtxtAt<'tcx> {
8888
}
8989

9090
#[derive(Copy, Clone)]
91+
#[must_use]
9192
pub struct TyCtxtEnsureOk<'tcx> {
9293
pub tcx: TyCtxt<'tcx>,
9394
}
9495

9596
#[derive(Copy, Clone)]
97+
#[must_use]
9698
pub struct TyCtxtEnsureDone<'tcx> {
9799
pub tcx: TyCtxt<'tcx>,
98100
}

0 commit comments

Comments
 (0)