Rollup merge of #66951 - RalfJung:miri-machine-stop, r=oli-obk
miri: add throw_machine_stop macro r? @oli-obk This helps Miri: https://github.com/rust-lang/miri/pull/1093
This commit is contained in:
commit
71d1286bdf
1 changed files with 7 additions and 0 deletions
|
@ -90,6 +90,13 @@ macro_rules! throw_exhaust {
|
||||||
($($tt:tt)*) => { return Err(err_exhaust!($($tt)*).into()) };
|
($($tt:tt)*) => { return Err(err_exhaust!($($tt)*).into()) };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[macro_export]
|
||||||
|
macro_rules! throw_machine_stop {
|
||||||
|
($($tt:tt)*) => {
|
||||||
|
return Err($crate::mir::interpret::InterpError::MachineStop(Box::new($($tt)*)).into())
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
mod error;
|
mod error;
|
||||||
mod value;
|
mod value;
|
||||||
mod allocation;
|
mod allocation;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue