Skip to content

Commit 6d86969

Browse files
committed
change the test suite //! kind syntax to //~ kind in order to avoid a
conflict with the new single-line-sugared-inner-doc-comment (`//! ...`).
1 parent 0b653ab commit 6d86969

File tree

253 files changed

+596
-596
lines changed

Some content is hidden

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

253 files changed

+596
-596
lines changed

src/compiletest/errors.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ fn load_errors(testfile: str) -> [expected_error]/~ {
2121
}
2222

2323
fn parse_expected(line_num: uint, line: str) -> [expected_error]/~ unsafe {
24-
let error_tag = "//!";
24+
let error_tag = "//~";
2525
let mut idx;
2626
alt str::find_str(line, error_tag) {
2727
option::none { ret []/~; }
2828
option::some(nn) { idx = (nn as uint) + str::len(error_tag); }
2929
}
3030

31-
// "//!^^^ kind msg" denotes a message expected
31+
// "//~^^^ kind msg" denotes a message expected
3232
// three lines above current line:
3333
let mut adjust_line = 0u;
3434
let len = str::len(line);

src/test/compile-fail/alt-join.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ fn my_fail() -> ! { fail; }
66
fn main() {
77
alt true { false { my_fail(); } true { } }
88

9-
log(debug, x); //! ERROR unresolved name: x
9+
log(debug, x); //~ ERROR unresolved name: x
1010
let x: int;
1111
}

src/test/compile-fail/alt-pattern-field-mismatch-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fn main() {
1010
rgb(_, _, _) { }
1111
cmyk(_, _, _, _) { }
1212
no_color(_) { }
13-
//!^ ERROR this pattern has 1 field, but the corresponding variant has no fields
13+
//~^ ERROR this pattern has 1 field, but the corresponding variant has no fields
1414
}
1515
}
1616
}

src/test/compile-fail/alt-pattern-field-mismatch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fn main() {
88
fn foo(c: color) {
99
alt c {
1010
rgb(_, _) { }
11-
//!^ ERROR this pattern has 2 fields, but the corresponding variant has 3 fields
11+
//~^ ERROR this pattern has 2 fields, but the corresponding variant has 3 fields
1212
cmyk(_, _, _, _) { }
1313
no_color { }
1414
}

src/test/compile-fail/ambig_impl_1.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
impl methods1 for uint { fn me() -> uint { self } } //! NOTE candidate #1 is `methods1::me`
2-
impl methods2 for uint { fn me() -> uint { self } } //! NOTE candidate #2 is `methods2::me`
3-
fn main() { 1u.me(); } //! ERROR multiple applicable methods in scope
1+
impl methods1 for uint { fn me() -> uint { self } } //~ NOTE candidate #1 is `methods1::me`
2+
impl methods2 for uint { fn me() -> uint { self } } //~ NOTE candidate #2 is `methods2::me`
3+
fn main() { 1u.me(); } //~ ERROR multiple applicable methods in scope

src/test/compile-fail/ambig_impl_2_exe.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
// aux-build:ambig_impl_2_lib.rs
33
use ambig_impl_2_lib;
44
import ambig_impl_2_lib::methods1;
5-
impl methods2 for uint { fn me() -> uint { self } } //! NOTE candidate #2 is `methods2::me`
6-
fn main() { 1u.me(); } //! ERROR multiple applicable methods in scope
7-
//!^ NOTE candidate #1 is `ambig_impl_2_lib::methods1::me`
5+
impl methods2 for uint { fn me() -> uint { self } } //~ NOTE candidate #2 is `methods2::me`
6+
fn main() { 1u.me(); } //~ ERROR multiple applicable methods in scope
7+
//~^ NOTE candidate #1 is `ambig_impl_2_lib::methods1::me`

src/test/compile-fail/ambig_impl_bounds.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ iface A { fn foo(); }
22
iface B { fn foo(); }
33

44
fn foo<T: A B>(t: T) {
5-
t.foo(); //! ERROR multiple applicable methods in scope
6-
//!^ NOTE candidate #1 derives from the bound `A`
7-
//!^^ NOTE candidate #2 derives from the bound `B`
5+
t.foo(); //~ ERROR multiple applicable methods in scope
6+
//~^ NOTE candidate #1 derives from the bound `A`
7+
//~^^ NOTE candidate #2 derives from the bound `B`
88
}
99

1010
fn main() {}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
impl methods for [uint]/~ {
2-
fn foo() -> int {1} //! NOTE candidate #1 is `methods::foo`
2+
fn foo() -> int {1} //~ NOTE candidate #1 is `methods::foo`
33
}
44

55
impl methods for [int]/~ {
6-
fn foo() -> int {2} //! NOTE candidate #2 is `methods::foo`
6+
fn foo() -> int {2} //~ NOTE candidate #2 is `methods::foo`
77
}
88

99
fn main() {
1010
let x = []/~;
11-
x.foo(); //! ERROR multiple applicable methods in scope
11+
x.foo(); //~ ERROR multiple applicable methods in scope
1212
}

src/test/compile-fail/assign-imm-local-twice.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
fn test() {
22
let v: int;
3-
v = 1; //! NOTE prior assignment occurs here
3+
v = 1; //~ NOTE prior assignment occurs here
44
#debug["v=%d", v];
5-
v = 2; //! ERROR re-assignment of immutable variable
5+
v = 2; //~ ERROR re-assignment of immutable variable
66
#debug["v=%d", v];
77
}
88

src/test/compile-fail/assign-super.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
fn main() {
22
let mut x: [mut int]/~ = [mut 3]/~;
33
let y: [int]/~ = [3]/~;
4-
x = y; //! ERROR values differ in mutability
4+
x = y; //~ ERROR values differ in mutability
55
}

0 commit comments

Comments
 (0)