Skip to content

Commit c7eee2f

Browse files
authored
Unrolled build for rust-lang#131596
Rollup merge of rust-lang#131596 - RalfJung:interp-result-must-use, r=jieyouxu mark InterpResult as must_use This was forgotten in rust-lang#130885
2 parents e200c7f + 8962343 commit c7eee2f

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)