about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-10-30 08:58:04 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-10-30 17:36:48 -0700
commitd7ee04c5c4f18cf56ddbe3f1b1758f3657cd6830 (patch)
tree3b1be65e4e213bffb5780cb76559ad91b8c9a7ef
parent8c03068b7ae38c16b1758b5a28967f8daf2ec456 (diff)
parent13d19bbf10068e0c8c0f42079e9ce18ca86ba108 (diff)
downloadrust-d7ee04c5c4f18cf56ddbe3f1b1758f3657cd6830.tar.gz
rust-d7ee04c5c4f18cf56ddbe3f1b1758f3657cd6830.zip
rollup merge of #18442 : Manishearth/rust_panic
-rw-r--r--src/doc/complement-bugreport.md2
-rw-r--r--src/librustrt/unwind.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/doc/complement-bugreport.md b/src/doc/complement-bugreport.md
index 1afd17d77d5..940a4ca6db7 100644
--- a/src/doc/complement-bugreport.md
+++ b/src/doc/complement-bugreport.md
@@ -47,7 +47,7 @@ release: 0.12.0
 ```
 
 Finally, if you can run the offending command under gdb, pasting a stack trace can be
-useful; to do so, you will need to set a breakpoint on `rust_fail`.
+useful; to do so, you will need to set a breakpoint on `rust_panic`.
 
 # I submitted a bug, but nobody has commented on it!
 
diff --git a/src/librustrt/unwind.rs b/src/librustrt/unwind.rs
index 8279b7d9654..c5fc0084ed9 100644
--- a/src/librustrt/unwind.rs
+++ b/src/librustrt/unwind.rs
@@ -177,7 +177,7 @@ pub unsafe fn try(f: ||) -> ::core::result::Result<(), Box<Any + Send>> {
 // An uninlined, unmangled function upon which to slap yer breakpoints
 #[inline(never)]
 #[no_mangle]
-fn rust_fail(cause: Box<Any + Send>) -> ! {
+fn rust_panic(cause: Box<Any + Send>) -> ! {
     rtdebug!("begin_unwind()");
 
     unsafe {
@@ -588,7 +588,7 @@ fn begin_unwind_inner(msg: Box<Any + Send>, file_line: &(&'static str, uint)) ->
     // (hopefully someone printed something about this).
     let mut task: Box<Task> = match Local::try_take() {
         Some(task) => task,
-        None => rust_fail(msg),
+        None => rust_panic(msg),
     };
 
     if task.unwinder.unwinding {
@@ -605,7 +605,7 @@ fn begin_unwind_inner(msg: Box<Any + Send>, file_line: &(&'static str, uint)) ->
     // requires the task. We need a handle to its unwinder, however, so after
     // this we unsafely extract it and continue along.
     Local::put(task);
-    rust_fail(msg);
+    rust_panic(msg);
 }
 
 /// Register a callback to be invoked when a task unwinds.