mark InterpResult as must_use

This commit is contained in:
Ralf Jung 2024-10-12 13:13:50 +02:00
parent fb20e4d3b9
commit 89623439f7

View File

@ -754,6 +754,7 @@ impl Drop for Guard {
/// ///
/// We also make things panic if this type is ever implicitly dropped. /// We also make things panic if this type is ever implicitly dropped.
#[derive(Debug)] #[derive(Debug)]
#[must_use]
pub struct InterpResult_<'tcx, T> { pub struct InterpResult_<'tcx, T> {
res: Result<T, InterpErrorInfo<'tcx>>, res: Result<T, InterpErrorInfo<'tcx>>,
guard: Guard, guard: Guard,