Skip to content

Commit d2a5d0b

Browse files
committed
---
yaml --- r: 155398 b: refs/heads/try2 c: c8b767d h: refs/heads/master v: v3
1 parent ed25871 commit d2a5d0b

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
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 1c7d253ca3601d2f9caddc52e66bfc1de3bdd441
8+
refs/heads/try2: c8b767dd3d06fcabc2df753cbb9fd694ebc0eec6
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/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

branches/try2/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)