Skip to content

Commit 53a4c70

Browse files
committed
---
yaml --- r: 81295 b: refs/heads/snap-stage3 c: 02054ac h: refs/heads/master i: 81293: c25b601 81291: c941c3c 81287: 9cf0249 81279: f0cc84b v: v3
1 parent a534545 commit 53a4c70

File tree

90 files changed

+115
-115
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+115
-115
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 4c6bf4872012c010f84dc7fa2cdfe87522533f89
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: ebf5f406ef6e291655ec9eca5aa8bd95775cc67c
4+
refs/heads/snap-stage3: 02054ac8a1490211a5a6873fdefe186bd0758b7b
55
refs/heads/try: 70152ff55722878cde684ee6462c14c65f2c4729
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/test/run-fail/args-fail.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
// except according to those terms.
1010

1111
// error-pattern:meep
12-
fn f(_a: int, _b: int, _c: @int) { fail!("moop"); }
12+
fn f(_a: int, _b: int, _c: @int) { fail2!("moop"); }
1313

14-
fn main() { f(1, fail!("meep"), @42); }
14+
fn main() { f(1, fail2!("meep"), @42); }

branches/snap-stage3/src/test/run-fail/assert-macro-fmt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
// error-pattern:failed at 'test-assert-fmt 42 rust'
1212

1313
fn main() {
14-
assert!(false, "test-assert-fmt %d %s", 42, "rust");
14+
assert!(false, "test-assert-fmt {} {}", 42, "rust");
1515
}

branches/snap-stage3/src/test/run-fail/binop-fail-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
// except according to those terms.
1010

1111
// error-pattern:quux
12-
fn my_err(s: ~str) -> ! { error!(s); fail!("quux"); }
12+
fn my_err(s: ~str) -> ! { error2!("{}", s); fail2!("quux"); }
1313
fn main() { 3u == my_err(~"bye"); }

branches/snap-stage3/src/test/run-fail/binop-fail-3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
// except according to those terms.
1010

1111
// error-pattern:quux
12-
fn foo() -> ! { fail!("quux"); }
12+
fn foo() -> ! { fail2!("quux"); }
1313
fn main() { foo() == foo(); }

branches/snap-stage3/src/test/run-fail/binop-fail.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
// except according to those terms.
1010

1111
// error-pattern:quux
12-
fn my_err(s: ~str) -> ! { error!(s); fail!("quux"); }
12+
fn my_err(s: ~str) -> ! { error2!("{}", s); fail2!("quux"); }
1313
fn main() { 3u == my_err(~"bye"); }

branches/snap-stage3/src/test/run-fail/bug-2470-bounds-check-overflow.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ fn main() {
2424
do x.as_imm_buf |p, _len| {
2525
let base = p as uint;
2626
let idx = base / sys::size_of::<uint>();
27-
error!("ov1 base = 0x%x", base);
28-
error!("ov1 idx = 0x%x", idx);
29-
error!("ov1 sizeof::<uint>() = 0x%x", sys::size_of::<uint>());
30-
error!("ov1 idx * sizeof::<uint>() = 0x%x",
27+
error2!("ov1 base = 0x{:x}", base);
28+
error2!("ov1 idx = 0x{:x}", idx);
29+
error2!("ov1 sizeof::<uint>() = 0x{:x}", sys::size_of::<uint>());
30+
error2!("ov1 idx * sizeof::<uint>() = 0x{:x}",
3131
idx * sys::size_of::<uint>());
3232

3333
// This should fail.
34-
error!("ov1 0x%x", x[idx]);
34+
error2!("ov1 0x{:x}", x[idx]);
3535
}
3636
}

branches/snap-stage3/src/test/run-fail/bug-811.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ struct chan_t<T> {
1919
port: port_id,
2020
}
2121

22-
fn send<T:Send>(_ch: chan_t<T>, _data: T) { fail!(); }
22+
fn send<T:Send>(_ch: chan_t<T>, _data: T) { fail2!(); }
2323

24-
fn main() { fail!("quux"); }
24+
fn main() { fail2!("quux"); }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// error-pattern:test
22

33
fn main() {
4-
let _i: int = fail!("test");
4+
let _i: int = fail2!("test");
55
}

branches/snap-stage3/src/test/run-fail/die-macro-pure.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// error-pattern:test
22

33
fn f() {
4-
fail!("test");
4+
fail2!("test");
55
}
66

77
fn main() {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// error-pattern:test
22

33
fn main() {
4-
fail!("test");
4+
fail2!("test");
55
}

branches/snap-stage3/src/test/run-fail/doublefail.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212

1313
//error-pattern:One
1414
fn main() {
15-
fail!("One");
16-
fail!("Two");
15+
fail2!("One");
16+
fail2!("Two");
1717
}

branches/snap-stage3/src/test/run-fail/explicit-fail-msg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
fn main() {
1616
let mut a = 1;
1717
if 1 == 1 { a = 2; }
18-
fail!(~"woooo" + "o");
18+
fail2!(~"woooo" + "o");
1919
}

branches/snap-stage3/src/test/run-fail/explicit-fail.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212

1313

1414
// error-pattern:explicit
15-
fn main() { fail!(); }
15+
fn main() { fail2!(); }

branches/snap-stage3/src/test/run-fail/expr-fn-fail.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212

1313

1414
// error-pattern:explicit failure
15-
fn f() -> ! { fail!() }
15+
fn f() -> ! { fail2!() }
1616

1717
fn main() { f(); }

branches/snap-stage3/src/test/run-fail/expr-if-fail-fn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
// error-pattern:explicit failure
15-
fn f() -> ! { fail!() }
15+
fn f() -> ! { fail2!() }
1616

1717
fn g() -> int { let x = if true { f() } else { 10 }; return x; }
1818

branches/snap-stage3/src/test/run-fail/expr-if-fail.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212

1313

1414
// error-pattern:explicit failure
15-
fn main() { let _x = if false { 0 } else if true { fail!() } else { 10 }; }
15+
fn main() { let _x = if false { 0 } else if true { fail2!() } else { 10 }; }

branches/snap-stage3/src/test/run-fail/expr-match-fail-fn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
// error-pattern:explicit failure
15-
fn f() -> ! { fail!() }
15+
fn f() -> ! { fail2!() }
1616

1717
fn g() -> int { let x = match true { true => { f() } false => { 10 } }; return x; }
1818

branches/snap-stage3/src/test/run-fail/expr-match-fail.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212

1313

1414
// error-pattern:explicit failure
15-
fn main() { let _x = match true { false => { 0 } true => { fail!() } }; }
15+
fn main() { let _x = match true { false => { 0 } true => { fail2!() } }; }

branches/snap-stage3/src/test/run-fail/extern-fail.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ fn main() {
4545
do task::spawn {
4646
let result = count(5u);
4747
info!("result = %?", result);
48-
fail!();
48+
fail2!();
4949
};
5050
}
5151
}

branches/snap-stage3/src/test/run-fail/fail-arg.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
// except according to those terms.
1010

1111
// error-pattern:woe
12-
fn f(a: int) { info!(a); }
12+
fn f(a: int) { info2!("{}", a); }
1313

14-
fn main() { f(fail!("woe")); }
14+
fn main() { f(fail2!("woe")); }

branches/snap-stage3/src/test/run-fail/fail-macro-explicit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
// error-pattern:failed at 'explicit failure'
1212

1313
fn main() {
14-
fail!();
14+
fail2!();
1515
}

branches/snap-stage3/src/test/run-fail/fail-macro-fmt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
// error-pattern:failed at 'test-fail-fmt 42 rust'
1212

1313
fn main() {
14-
fail!("test-fail-fmt %d %s", 42, "rust");
14+
fail2!("test-fail-fmt {} {}", 42, "rust");
1515
}

branches/snap-stage3/src/test/run-fail/fail-macro-owned.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
// error-pattern:failed at 'test-fail-owned'
1212

1313
fn main() {
14-
fail!("test-fail-owned");
14+
fail2!("test-fail-owned");
1515
}

branches/snap-stage3/src/test/run-fail/fail-macro-static.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
// error-pattern:failed at 'test-fail-static'
1212

1313
fn main() {
14-
fail!("test-fail-static");
14+
fail2!("test-fail-static");
1515
}

branches/snap-stage3/src/test/run-fail/fail-main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010

1111
// error-pattern:moop
1212
extern mod extra;
13-
fn main() { fail!("moop"); }
13+
fn main() { fail2!("moop"); }

branches/snap-stage3/src/test/run-fail/fail-parens.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
// error-pattern:oops
1414

1515
fn bigfail() {
16-
while (fail!("oops")) { if (fail!()) {
17-
match (fail!()) { () => {
16+
while (fail2!("oops")) { if (fail2!()) {
17+
match (fail2!()) { () => {
1818
}
1919
}
2020
}};

branches/snap-stage3/src/test/run-fail/fmt-fail.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
// error-pattern:meh
1212
extern mod extra;
1313

14-
fn main() { let str_var: ~str = ~"meh"; fail!(fmt!("%s", str_var)); }
14+
fn main() { let str_var: ~str = ~"meh"; fail2!("{}", str_var); }

branches/snap-stage3/src/test/run-fail/for-each-loop-fail.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
// error-pattern:moop
1212
extern mod extra;
1313

14-
fn main() { for _ in range(0u, 10u) { fail!("moop"); } }
14+
fn main() { for _ in range(0u, 10u) { fail2!("moop"); } }

branches/snap-stage3/src/test/run-fail/if-check-fail.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ fn even(x: uint) -> bool {
1717

1818
fn foo(x: uint) {
1919
if even(x) {
20-
info!(x);
20+
info2!("{}", x);
2121
} else {
22-
fail!("Number is odd");
22+
fail2!("Number is odd");
2323
}
2424
}
2525

branches/snap-stage3/src/test/run-fail/if-cond-bot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
// except according to those terms.
1010

1111
// error-pattern:quux
12-
fn my_err(s: ~str) -> ! { error!(s); fail!("quux"); }
12+
fn my_err(s: ~str) -> ! { error2!("{}", s); fail2!("quux"); }
1313
fn main() { if my_err(~"bye") { } }

branches/snap-stage3/src/test/run-fail/issue-2156.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ use std::io;
1919

2020
fn main() {
2121
do io::with_str_reader(~"") |rdr| {
22-
match rdr.read_char() { '=' => { } _ => { fail!() } }
22+
match rdr.read_char() { '=' => { } _ => { fail2!() } }
2323
}
2424
}

branches/snap-stage3/src/test/run-fail/issue-2272.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ fn main() {
2222
},
2323
a: ~0
2424
};
25-
fail!();
25+
fail2!();
2626
}

branches/snap-stage3/src/test/run-fail/issue-2444.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use extra::arc;
1515

1616
enum e<T> { e(arc::Arc<T>) }
1717

18-
fn foo() -> e<int> {fail!();}
18+
fn foo() -> e<int> {fail2!();}
1919

2020
fn main() {
2121
let _f = foo();

branches/snap-stage3/src/test/run-fail/issue-3029.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
fn main() {
1717
let mut x = ~[];
1818
let y = ~[3];
19-
fail!("so long");
19+
fail2!("so long");
2020
x.push_all_move(y);
2121
~"good" + ~"bye";
2222
}

branches/snap-stage3/src/test/run-fail/issue-948.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ struct Point { x: int, y: int }
1616

1717
fn main() {
1818
let origin = Point {x: 0, y: 0};
19-
let f: Point = Point {x: (fail!("beep boop")),.. origin};
19+
let f: Point = Point {x: (fail2!("beep boop")),.. origin};
2020
}

branches/snap-stage3/src/test/run-fail/linked-failure2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use std::comm;
1717
use std::task;
1818

19-
fn child() { fail!(); }
19+
fn child() { fail2!(); }
2020

2121
fn main() {
2222
let (p, _c) = comm::stream::<()>();

branches/snap-stage3/src/test/run-fail/linked-failure3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use std::comm;
1717
use std::task;
1818

19-
fn grandchild() { fail!("grandchild dies"); }
19+
fn grandchild() { fail2!("grandchild dies"); }
2020

2121
fn child() {
2222
let (p, _c) = comm::stream::<int>();

branches/snap-stage3/src/test/run-fail/match-bot-fail.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ fn foo(s: ~str) { }
1717

1818
fn main() {
1919
let i =
20-
match Some::<int>(3) { None::<int> => { fail!() } Some::<int>(_) => { fail!() } };
20+
match Some::<int>(3) { None::<int> => { fail2!() } Some::<int>(_) => { fail2!() } };
2121
foo(i);
2222
}

branches/snap-stage3/src/test/run-fail/match-disc-bot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
// except according to those terms.
1010

1111
// error-pattern:quux
12-
fn f() -> ! { fail!("quux") }
12+
fn f() -> ! { fail2!("quux") }
1313
fn g() -> int { match f() { true => { 1 } false => { 0 } } }
1414
fn main() { g(); }

branches/snap-stage3/src/test/run-fail/match-wildcards.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
// error-pattern:squirrelcupcake
1212
fn cmp() -> int {
1313
match (Some('a'), None::<char>) {
14-
(Some(_), _) => { fail!("squirrelcupcake"); }
15-
(_, Some(_)) => { fail!(); }
16-
_ => { fail!("wat"); }
14+
(Some(_), _) => { fail2!("squirrelcupcake"); }
15+
(_, Some(_)) => { fail2!(); }
16+
_ => { fail2!("wat"); }
1717
}
1818
}
1919

20-
fn main() { error!(cmp()); }
20+
fn main() { error2!("{}", cmp()); }

branches/snap-stage3/src/test/run-fail/morestack1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn getbig(i: int) {
1414
if i != 0 {
1515
getbig(i - 1);
1616
} else {
17-
fail!();
17+
fail2!();
1818
}
1919
}
2020

branches/snap-stage3/src/test/run-fail/morestack2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fn getbig_call_c_and_fail(i: int) {
3535
} else {
3636
unsafe {
3737
rustrt::rust_get_argc();
38-
fail!();
38+
fail2!();
3939
}
4040
}
4141
}

branches/snap-stage3/src/test/run-fail/morestack3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fn getbig_and_fail(i: int) {
2222
if i != 0 {
2323
getbig_and_fail(i - 1);
2424
} else {
25-
fail!();
25+
fail2!();
2626
}
2727
}
2828

branches/snap-stage3/src/test/run-fail/morestack4.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fn getbig_and_fail(i: int) {
2222
if i != 0 {
2323
getbig_and_fail(i - 1);
2424
} else {
25-
fail!();
25+
fail2!();
2626
}
2727
}
2828

branches/snap-stage3/src/test/run-fail/result-get-fail.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
use std::result;
1414

1515
fn main() {
16-
error!(result::Err::<int,~str>(~"kitty").unwrap());
16+
error2!("{:?}", result::Err::<int,~str>(~"kitty").unwrap());
1717
}

branches/snap-stage3/src/test/run-fail/rhs-type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
struct T { t: ~str }
1919

2020
fn main() {
21-
let pth = fail!("bye");
21+
let pth = fail2!("bye");
2222
let _rs: T = T {t: pth};
2323
}

0 commit comments

Comments
 (0)