diff --git a/src/nightly_lazy.rs b/src/nightly_lazy.rs index 723222a..e7c3a6e 100644 --- a/src/nightly_lazy.rs +++ b/src/nightly_lazy.rs @@ -6,6 +6,7 @@ // copied, modified, or distributed except according to those terms. extern crate std; +extern crate core; use self::std::prelude::v1::*; use self::std::sync::Once; @@ -27,7 +28,7 @@ impl Lazy { unsafe { match self.0 { Some(ref x) => x, - None => std::mem::unreachable(), + None => core::hint::unreachable_unchecked(), } } }