From 3abf9bdf38a176783c2734c670ba4632feac889c Mon Sep 17 00:00:00 2001 From: panicbit Date: Fri, 24 Feb 2017 20:42:00 +0100 Subject: [PATCH] ctr-std: Mark thread::panicking --- ctr-std/src/thread/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ctr-std/src/thread/mod.rs b/ctr-std/src/thread/mod.rs index 8b27bed..a8a6490 100644 --- a/ctr-std/src/thread/mod.rs +++ b/ctr-std/src/thread/mod.rs @@ -195,6 +195,8 @@ pub use self::local::{LocalKey, LocalKeyState}; #[doc(hidden)] pub use self::local::os::Key as __OsLocalKeyInner; // We don't have stack unwinding, so this should always be false +#[inline] +#[stable(feature = "rust1", since = "1.0.0")] pub fn panicking() -> bool { false }