mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
mark InterpResult as must_use
This commit is contained in:
parent
fb20e4d3b9
commit
89623439f7
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user