Skip to content

Commit ecff9f8

Browse files
committed
---
yaml --- r: 136670 b: refs/heads/dist-snap c: 45f4081 h: refs/heads/master v: v3
1 parent 6b5e262 commit ecff9f8

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 189b7332968972f34cdbbbd9b62d97ababf53059
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 9a01da9460a9e7a8be88896e9da0306fd47823a1
9+
refs/heads/dist-snap: 45f4081e61a1a15e2b5b9c5a09976fddffdac9dc
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/libcore/failure.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
//! interface for failure is:
1717
//!
1818
//! ```ignore
19-
//! fn begin_unwind(fmt: &fmt::Arguments, &(&'static str, uint)) -> !;
19+
//! fn fail_impl(fmt: &fmt::Arguments, &(&'static str, uint)) -> !;
2020
//! ```
2121
//!
2222
//! This definition allows for failing with any general message, but it does not
@@ -39,7 +39,7 @@ fn fail_(expr_file_line: &(&'static str, &'static str, uint)) -> ! {
3939
let (expr, file, line) = *expr_file_line;
4040
let ref file_line = (file, line);
4141
format_args!(|args| -> () {
42-
begin_unwind(args, file_line);
42+
fail_impl(args, file_line);
4343
}, "{}", expr);
4444

4545
unsafe { intrinsics::abort() }
@@ -50,33 +50,33 @@ fn fail_(expr_file_line: &(&'static str, &'static str, uint)) -> ! {
5050
fn fail_bounds_check(file_line: &(&'static str, uint),
5151
index: uint, len: uint) -> ! {
5252
format_args!(|args| -> () {
53-
begin_unwind(args, file_line);
53+
fail_impl(args, file_line);
5454
}, "index out of bounds: the len is {} but the index is {}", len, index);
5555
unsafe { intrinsics::abort() }
5656
}
5757

5858
#[cold] #[inline(never)]
59-
pub fn begin_unwind_string(msg: &str, file: &(&'static str, uint)) -> ! {
60-
format_args!(|fmt| begin_unwind(fmt, file), "{}", msg)
59+
pub fn fail_impl_string(msg: &str, file: &(&'static str, uint)) -> ! {
60+
format_args!(|fmt| fail_impl(fmt, file), "{}", msg)
6161
}
6262

6363
#[cold] #[inline(never)]
64-
pub fn begin_unwind(fmt: &fmt::Arguments, file_line: &(&'static str, uint)) -> ! {
64+
pub fn fail_impl(fmt: &fmt::Arguments, file_line: &(&'static str, uint)) -> ! {
6565
#[allow(ctypes)]
6666
extern {
6767

6868
#[cfg(stage0)]
6969
#[lang = "begin_unwind"]
70-
fn begin_unwind(fmt: &fmt::Arguments, file: &'static str,
70+
fn fail_impl(fmt: &fmt::Arguments, file: &'static str,
7171
line: uint) -> !;
7272

7373
#[cfg(not(stage0))]
7474
#[lang = "fail_fmt"]
75-
fn begin_unwind(fmt: &fmt::Arguments, file: &'static str,
75+
fn fail_impl(fmt: &fmt::Arguments, file: &'static str,
7676
line: uint) -> !;
7777

7878
}
7979
let (file, line) = *file_line;
80-
unsafe { begin_unwind(fmt, file, line) }
80+
unsafe { fail_impl(fmt, file, line) }
8181
}
8282

branches/dist-snap/src/libcore/macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ macro_rules! fail(
1818
);
1919
($msg:expr) => ({
2020
static _FILE_LINE: (&'static str, uint) = (file!(), line!());
21-
::core::failure::begin_unwind_string($msg, &_FILE_LINE)
21+
::core::failure::fail_impl_string($msg, &_FILE_LINE)
2222
});
2323
($fmt:expr, $($arg:tt)*) => ({
2424
// a closure can't have return type !, so we need a full
@@ -40,7 +40,7 @@ macro_rules! fail(
4040
#[inline(always)]
4141
fn _run_fmt(fmt: &::std::fmt::Arguments) -> ! {
4242
static _FILE_LINE: (&'static str, uint) = (file!(), line!());
43-
::core::failure::begin_unwind(fmt, &_FILE_LINE)
43+
::core::failure::fail_impl(fmt, &_FILE_LINE)
4444
}
4545
format_args!(_run_fmt, $fmt, $($arg)*)
4646
});

0 commit comments

Comments
 (0)