diff options
| author | Saleem Jaffer <ssaleem1992@gmail.com> | 2019-07-30 20:36:17 +0530 |
|---|---|---|
| committer | Saleem Jaffer <ssaleem1992@gmail.com> | 2019-07-30 20:36:17 +0530 |
| commit | 5585445a3359d74c304773e7d5d066409316ba36 (patch) | |
| tree | c23d12dfea4aee091f179ab95909822503d9a3b0 | |
| parent | 35417e722ba088b2b9dd832160f6194a64aa3277 (diff) | |
| download | rust-5585445a3359d74c304773e7d5d066409316ba36.tar.gz rust-5585445a3359d74c304773e7d5d066409316ba36.zip | |
throw_X macros use err_X macros
| -rw-r--r-- | src/librustc/mir/interpret/mod.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/librustc/mir/interpret/mod.rs b/src/librustc/mir/interpret/mod.rs index 2409d22e5f0..ad18e2779ba 100644 --- a/src/librustc/mir/interpret/mod.rs +++ b/src/librustc/mir/interpret/mod.rs @@ -2,20 +2,12 @@ #[macro_export] macro_rules! throw_unsup { - ($($tt:tt)*) => { - return Err($crate::mir::interpret::InterpError::Unsupported( - $crate::mir::interpret::UnsupportedOpInfo::$($tt)* - ).into()) - }; + ($($tt:tt)*) => { return Err(err_unsup!($($tt)*).into()) }; } #[macro_export] macro_rules! throw_inval { - ($($tt:tt)*) => { - return Err($crate::mir::interpret::InterpError::InvalidProgram( - $crate::mir::interpret::InvalidProgramInfo::$($tt)* - ).into()) - }; + ($($tt:tt)*) => { return Err(err_inval!($($tt)*).into()) }; } #[macro_export] |
