mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +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.
|
/// 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,
|
||||||
|
Loading…
Reference in New Issue
Block a user