Skip to content

Commit

Permalink
Unrolled build for rust-lang#131596
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rust-timer authored Oct 12, 2024
2 parents e200c7f + 8962343 commit c7eee2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_middle/src/mir/interpret/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c7eee2f

Please sign in to comment.