diff options
Diffstat (limited to 'ctr-std/src/panicking.rs')
| -rw-r--r-- | ctr-std/src/panicking.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ctr-std/src/panicking.rs b/ctr-std/src/panicking.rs index d6b922d..e0f9477 100644 --- a/ctr-std/src/panicking.rs +++ b/ctr-std/src/panicking.rs @@ -11,10 +11,19 @@ //! Implementation of various bits and pieces of the `panic!` macro and //! associated runtime pieces. +use io::prelude::*; + use any::Any; +use cell::RefCell; use fmt; use __core::fmt::Display; +thread_local! { + pub static LOCAL_STDERR: RefCell<Option<Box<Write + Send>>> = { + RefCell::new(None) + } +} + ///The compiler wants this to be here. Otherwise it won't be happy. And we like happy compilers. #[lang = "eh_personality"] extern fn eh_personality() {} |