We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35417e7 commit 5585445Copy full SHA for 5585445
src/librustc/mir/interpret/mod.rs
@@ -2,20 +2,12 @@
2
3
#[macro_export]
4
macro_rules! throw_unsup {
5
- ($($tt:tt)*) => {
6
- return Err($crate::mir::interpret::InterpError::Unsupported(
7
- $crate::mir::interpret::UnsupportedOpInfo::$($tt)*
8
- ).into())
9
- };
+ ($($tt:tt)*) => { return Err(err_unsup!($($tt)*).into()) };
10
}
11
12
13
macro_rules! throw_inval {
14
15
- return Err($crate::mir::interpret::InterpError::InvalidProgram(
16
- $crate::mir::interpret::InvalidProgramInfo::$($tt)*
17
18
+ ($($tt:tt)*) => { return Err(err_inval!($($tt)*).into()) };
19
20
21
0 commit comments