about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2014-07-25 15:57:15 -0700
committerBrian Anderson <banderson@mozilla.com>2014-07-25 15:57:15 -0700
commit53f0eae3866f5b4708e9f34b009df843f91136d7 (patch)
tree339e9e398561ec6a382118ad365b4ecbe3579ea7 /src/libstd
parentcf7a89f0c0935412f24d64c0ae2e202970124ff9 (diff)
downloadrust-53f0eae3866f5b4708e9f34b009df843f91136d7.tar.gz
rust-53f0eae3866f5b4708e9f34b009df843f91136d7.zip
Revert "Use fewer instructions for `fail!`"
This reverts commit c61f9763e2e03afbe62445877ceb3ed15e22e123.

Conflicts:
	src/librustrt/unwind.rs
	src/libstd/macros.rs
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/macros.rs5
-rw-r--r--src/libstd/rt/mod.rs3
2 files changed, 3 insertions, 5 deletions
diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs
index f3f47e3923d..f0732c7d508 100644
--- a/src/libstd/macros.rs
+++ b/src/libstd/macros.rs
@@ -39,11 +39,10 @@
 #[macro_export]
 macro_rules! fail(
     () => ({
-        // static requires less code at runtime, more constant data
-        static FILE_LINE: (&'static str, uint) = (file!(), line!());
-        ::std::rt::begin_unwind_no_time_to_explain(&FILE_LINE)
+        fail!("explicit failure")
     });
     ($msg:expr) => ({
+        // static requires less code at runtime, more constant data
         static FILE_LINE: (&'static str, uint) = (file!(), line!());
         let (file, line) = FILE_LINE;
         ::std::rt::begin_unwind($msg, file, line)
diff --git a/src/libstd/rt/mod.rs b/src/libstd/rt/mod.rs
index 023a30de027..4490977bde6 100644
--- a/src/libstd/rt/mod.rs
+++ b/src/libstd/rt/mod.rs
@@ -66,8 +66,7 @@ pub use self::util::{default_sched_threads, min_stack, running_on_valgrind};
 // standard library which work together to create the entire runtime.
 pub use alloc::{heap, libc_heap};
 pub use rustrt::{task, local, mutex, exclusive, stack, args, rtio, thread};
-pub use rustrt::{Stdio, Stdout, Stderr};
-pub use rustrt::{begin_unwind, begin_unwind_fmt, begin_unwind_no_time_to_explain};
+pub use rustrt::{Stdio, Stdout, Stderr, begin_unwind, begin_unwind_fmt};
 pub use rustrt::{bookkeeping, at_exit, unwind, DEFAULT_ERROR_CODE, Runtime};
 
 // Simple backtrace functionality (to print on failure)