Mark the tcx-ensure wrapper types with #[must_use]
· rust-lang/rust@3ae0239 (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit 3ae0239
Mark the tcx-ensure wrapper types with #[must_use]
File tree
1 file changed
lines changed
- compiler/rustc_middle/src/query
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -88,11 +88,13 @@ impl<'tcx> Deref for TyCtxtAt<'tcx> { | ||
88 | 88 | } |
89 | 89 | |
90 | 90 | #[derive(Copy, Clone)] |
91 | +#[must_use] | |
91 | 92 | pub struct TyCtxtEnsureOk<'tcx> { |
92 | 93 | pub tcx: TyCtxt<'tcx>, |
93 | 94 | } |
94 | 95 | |
95 | 96 | #[derive(Copy, Clone)] |
97 | +#[must_use] | |
96 | 98 | pub struct TyCtxtEnsureDone<'tcx> { |
97 | 99 | pub tcx: TyCtxt<'tcx>, |
98 | 100 | } |