Skip to content

Commit 71d1286

Browse files
authored
Rollup merge of #66951 - RalfJung:miri-machine-stop, r=oli-obk
miri: add throw_machine_stop macro r? @oli-obk This helps Miri: rust-lang/miri#1093
2 parents d4b6235 + ff5fcac commit 71d1286

File tree

1 file changed

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

1 file changed

+7
-0
lines changed

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)