about summary refs log tree commit diff
path: root/src/librustc/mir/interpret
diff options
context:
space:
mode:
authorSaleem Jaffer <ssaleem1992@gmail.com>2019-08-01 12:13:49 +0530
committerSaleem Jaffer <ssaleem1992@gmail.com>2019-08-01 12:13:49 +0530
commit00d32e8687a91f016580e0dee22cec0531ed028b (patch)
treee195bfd753fd1c18fdfab777de3a9aad016e16c0 /src/librustc/mir/interpret
parent0c4513e8ed576050c677763eeb632afbba83dce1 (diff)
downloadrust-00d32e8687a91f016580e0dee22cec0531ed028b.tar.gz
rust-00d32e8687a91f016580e0dee22cec0531ed028b.zip
code review fixes
Diffstat (limited to 'src/librustc/mir/interpret')
-rw-r--r--src/librustc/mir/interpret/mod.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/librustc/mir/interpret/mod.rs b/src/librustc/mir/interpret/mod.rs
index f3ed4ffab7d..723a30792fd 100644
--- a/src/librustc/mir/interpret/mod.rs
+++ b/src/librustc/mir/interpret/mod.rs
@@ -57,11 +57,7 @@ macro_rules! throw_inval {
 
 #[macro_export]
 macro_rules! throw_ub {
-    ($($tt:tt)*) => {
-        return Err($crate::mir::interpret::InterpError::UndefinedBehaviour(
-            $crate::mir::interpret::UndefinedBehaviourInfo::$($tt)*
-        ).into())
-    };
+    ($($tt:tt)*) => { return Err(err_ub!($($tt)*).into()) };
 }
 
 #[macro_export]