Skip to content

Commit

Permalink
Rollup merge of rust-lang#131596 - RalfJung:interp-result-must-use, r…
Browse files Browse the repository at this point in the history
…=jieyouxu

mark InterpResult as must_use

This was forgotten in rust-lang#130885
  • Loading branch information
tgross35 authored Oct 12, 2024
2 parents 1fb6435 + 8962343 commit 421abc8
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 421abc8

Please sign in to comment.