]> git.lizzy.rs Git - rust.git/commitdiff
Rename rust_fail to rust_panic
authorManish Goregaokar <manishsmail@gmail.com>
Wed, 29 Oct 2014 23:28:34 +0000 (04:58 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Wed, 29 Oct 2014 23:39:50 +0000 (05:09 +0530)
src/doc/complement-bugreport.md
src/librustrt/unwind.rs

index 1afd17d77d554d3953de57bc0362365163d078bb..940a4ca6db7b3e9b4709d80e36dd063a305b91b3 100644 (file)
@@ -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!
 
index 8279b7d9654e4bbc24016d96225b605ffff891a7..c5fc0084ed9327dc5d8389e45c31245ee6f2ae8a 100644 (file)
@@ -177,7 +177,7 @@ fn rust_try(f: extern "C" fn(*mut c_void, *mut c_void),
 // 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.