Rollup merge of #131596 - RalfJung:interp-result-must-use, r=jieyouxu
mark InterpResult as must_use This was forgotten in https://github.com/rust-lang/rust/pull/130885
This commit is contained in:
commit
421abc81cd
@ -754,6 +754,7 @@ impl Drop for Guard {
|
||||
///
|
||||
/// We also make things panic if this type is ever implicitly dropped.
|
||||
#[derive(Debug)]
|
||||
#[must_use]
|
||||
pub struct InterpResult_<'tcx, T> {
|
||||
res: Result<T, InterpErrorInfo<'tcx>>,
|
||||
guard: Guard,
|
||||
|
Loading…
x
Reference in New Issue
Block a user