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:
Trevor Gross 2024-10-12 11:08:44 -05:00 committed by GitHub
commit 421abc81cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,