Skip to content

Commit 421abc8

Browse files
authored
Rollup merge of #131596 - RalfJung:interp-result-must-use, r=jieyouxu
mark InterpResult as must_use This was forgotten in #130885
2 parents 1fb6435 + 8962343 commit 421abc8

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_middle/src/mir/interpret

1 file changed

+1
-0
lines changed

compiler/rustc_middle/src/mir/interpret/error.rs

+1
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,7 @@ impl Drop for Guard {
754754
///
755755
/// We also make things panic if this type is ever implicitly dropped.
756756
#[derive(Debug)]
757+
#[must_use]
757758
pub struct InterpResult_<'tcx, T> {
758759
res: Result<T, InterpErrorInfo<'tcx>>,
759760
guard: Guard,

0 commit comments

Comments
 (0)