mark InterpResult as must_use
This commit is contained in:
parent
fb20e4d3b9
commit
89623439f7
1 changed files with 1 additions and 0 deletions
|
@ -754,6 +754,7 @@ impl Drop for Guard {
|
||||||
///
|
///
|
||||||
/// We also make things panic if this type is ever implicitly dropped.
|
/// We also make things panic if this type is ever implicitly dropped.
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
#[must_use]
|
||||||
pub struct InterpResult_<'tcx, T> {
|
pub struct InterpResult_<'tcx, T> {
|
||||||
res: Result<T, InterpErrorInfo<'tcx>>,
|
res: Result<T, InterpErrorInfo<'tcx>>,
|
||||||
guard: Guard,
|
guard: Guard,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue