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

Commit

Permalink
Mark the tcx-ensure wrapper types with #[must_use]
Browse files Browse the repository at this point in the history
  • Loading branch information
Zalathar committed Feb 1, 2025
1 parent 3581512 commit 3ae0239
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/rustc_middle/src/query/plumbing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,13 @@ impl<'tcx> Deref for TyCtxtAt<'tcx> {
}

#[derive(Copy, Clone)]
#[must_use]
pub struct TyCtxtEnsureOk<'tcx> {
pub tcx: TyCtxt<'tcx>,
}

#[derive(Copy, Clone)]
#[must_use]
pub struct TyCtxtEnsureDone<'tcx> {
pub tcx: TyCtxt<'tcx>,
}
Expand Down

0 comments on commit 3ae0239

Please sign in to comment.