Skip to content

Commit ff5fcac

Browse files
committed
miri: add throw_machine_stop macro
1 parent f5c81e0 commit ff5fcac

File tree

1 file changed

+7
-0
lines changed
  • src/librustc/mir/interpret

1 file changed

+7
-0
lines changed

Diff for: src/librustc/mir/interpret/mod.rs

+7
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ macro_rules! throw_exhaust {
9090
($($tt:tt)*) => { return Err(err_exhaust!($($tt)*).into()) };
9191
}
9292

93+
#[macro_export]
94+
macro_rules! throw_machine_stop {
95+
($($tt:tt)*) => {
96+
return Err($crate::mir::interpret::InterpError::MachineStop(Box::new($($tt)*)).into())
97+
};
98+
}
99+
93100
mod error;
94101
mod value;
95102
mod allocation;

0 commit comments

Comments
 (0)