Skip to content

Commit fc98663

Browse files
committed
---
yaml --- r: 134178 b: refs/heads/master c: c8b767d h: refs/heads/master v: v3
1 parent 6898bc1 commit fc98663

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 1c7d253ca3601d2f9caddc52e66bfc1de3bdd441
2+
refs/heads/master: c8b767dd3d06fcabc2df753cbb9fd694ebc0eec6
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 437179ed8bf7f7672f84b19265df1ce569e70490
55
refs/heads/try: 777654cfccbfa39bc7f671d8e9629018ed8ca12d

trunk/src/libcore/failure.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fn fail_(expr_file_line: &(&'static str, &'static str, uint)) -> ! {
4141
let (expr, file, line) = *expr_file_line;
4242
let ref file_line = (file, line);
4343
format_args!(|args| -> () {
44-
fail_impl(args, file_line);
44+
fail_fmt(args, file_line);
4545
}, "{}", expr);
4646

4747
unsafe { intrinsics::abort() }
@@ -54,7 +54,7 @@ fn fail(expr_file_line: &(&'static str, &'static str, uint)) -> ! {
5454
let (expr, file, line) = *expr_file_line;
5555
let ref file_line = (file, line);
5656
format_args!(|args| -> () {
57-
fail_impl(args, file_line);
57+
fail_fmt(args, file_line);
5858
}, "{}", expr);
5959

6060
unsafe { intrinsics::abort() }
@@ -65,18 +65,18 @@ fn fail(expr_file_line: &(&'static str, &'static str, uint)) -> ! {
6565
fn fail_bounds_check(file_line: &(&'static str, uint),
6666
index: uint, len: uint) -> ! {
6767
format_args!(|args| -> () {
68-
fail_impl(args, file_line);
68+
fail_fmt(args, file_line);
6969
}, "index out of bounds: the len is {} but the index is {}", len, index);
7070
unsafe { intrinsics::abort() }
7171
}
7272

7373
#[cold] #[inline(never)]
74-
pub fn fail_impl_string(msg: &str, file: &(&'static str, uint)) -> ! {
75-
format_args!(|fmt| fail_impl(fmt, file), "{}", msg)
74+
pub fn fail_str(msg: &str, file: &(&'static str, uint)) -> ! {
75+
format_args!(|fmt| fail_fmt(fmt, file), "{}", msg)
7676
}
7777

7878
#[cold] #[inline(never)]
79-
pub fn fail_impl(fmt: &fmt::Arguments, file_line: &(&'static str, uint)) -> ! {
79+
pub fn fail_fmt(fmt: &fmt::Arguments, file_line: &(&'static str, uint)) -> ! {
8080
#[allow(ctypes)]
8181
extern {
8282

trunk/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::fail_impl_string($msg, &_FILE_LINE)
21+
::core::failure::fail_str($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::fail_impl(fmt, &_FILE_LINE)
43+
::core::failure::fail_fmt(fmt, &_FILE_LINE)
4444
}
4545
format_args!(_run_fmt, $fmt, $($arg)*)
4646
});

0 commit comments

Comments
 (0)