]> git.lizzy.rs Git - rust.git/blobdiff - example/mini_core_hello_world.rs
Rustup to rustc 1.45.0-nightly (56daaf669 2020-06-03)
[rust.git] / example / mini_core_hello_world.rs
index 93eda4be31a9bb56f6794cfa4b7bd3ac14a53277..82014f594d23bb043504b751aae4da759f88c548 100644 (file)
@@ -414,10 +414,10 @@ pub enum E2<X> {
 
 fn check_niche_behavior () {
     if let E1::V2 { .. } = (E1::V1 { f: true }) {
-        unsafe { intrinsics::abort(); }
+        intrinsics::abort();
     }
 
     if let E2::V1 { .. } = E2::V3::<Infallible> {
-        unsafe { intrinsics::abort(); }
+        intrinsics::abort();
     }
 }