]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/sys/sgx/abi/mod.rs
SGX target: convert a bunch of panics to aborts
[rust.git] / src / libstd / sys / sgx / abi / mod.rs
index 85ec8be4aae69bf157b89a7e6c86209279a20dc6..1f433e25ee16ccf4669f84d6ae2b44e93ecc27be 100644 (file)
@@ -69,9 +69,9 @@ extern "C" fn entry(p1: u64, p2: u64, p3: u64, secondary: bool, p4: u64, p5: u64
         }
 
         // check entry is being called according to ABI
-        assert_eq!(p3, 0);
-        assert_eq!(p4, 0);
-        assert_eq!(p5, 0);
+        rtassert!(p3 == 0);
+        rtassert!(p4 == 0);
+        rtassert!(p5 == 0);
 
         unsafe {
             // The actual types of these arguments are `p1: *const Arg, p2: