Mark the tcx-ensure wrapper types with #[must_use]
This commit is contained in:
parent
3581512fb8
commit
3ae0239f85
1 changed files with 2 additions and 0 deletions
|
@ -88,11 +88,13 @@ impl<'tcx> Deref for TyCtxtAt<'tcx> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
|
#[must_use]
|
||||||
pub struct TyCtxtEnsureOk<'tcx> {
|
pub struct TyCtxtEnsureOk<'tcx> {
|
||||||
pub tcx: TyCtxt<'tcx>,
|
pub tcx: TyCtxt<'tcx>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
|
#[must_use]
|
||||||
pub struct TyCtxtEnsureDone<'tcx> {
|
pub struct TyCtxtEnsureDone<'tcx> {
|
||||||
pub tcx: TyCtxt<'tcx>,
|
pub tcx: TyCtxt<'tcx>,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue