Skip to content

Commit ecb7b01

Browse files
committed
Add NOTE test annotations
1 parent e533ed9 commit ecb7b01

10 files changed

+14
-5
lines changed

src/test/compile-fail/issue-25385.rs

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ macro_rules! foo {
1717
fn main() {
1818
let a = 1i32;
1919
foo!(a);
20+
//~^ NOTE in this expansion of foo!
2021

2122
foo!(1i32.foo());
2223
//~^ ERROR no method named `foo` found for type `i32` in the current scope

src/test/compile-fail/issue-25386.rs

+2
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,6 @@ macro_rules! check_ptr_exist {
3535
fn main() {
3636
let item = stuff::Item::new();
3737
println!("{}", check_ptr_exist!(item, name));
38+
//~^ NOTE in this expansion of check_ptr_exist!
39+
//~^^ NOTE in this expansion of check_ptr_exist!
3840
}

src/test/compile-fail/issue-25793.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ impl HasInfo {
2626

2727
fn get_other(&mut self) -> usize {
2828
self.get_size(width!(self))
29+
//~^ NOTE in this expansion of width!
2930
}
3031
}
3132

32-
fn main() {
33-
println!("hello?");
34-
}
33+
fn main() {}

src/test/compile-fail/issue-26093.rs

+1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ macro_rules! not_an_lvalue {
1717

1818
fn main() {
1919
not_an_lvalue!(99);
20+
//~^ NOTE in this expansion of not_an_lvalue!
2021
}

src/test/compile-fail/issue-26094.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ macro_rules! some_macro {
1515
})
1616
}
1717

18-
fn some_function() {
19-
}
18+
fn some_function() {}
2019

2120
fn main() {
2221
some_macro!(some_function);
22+
//~^ in this expansion of some_macro!
2323
}

src/test/compile-fail/issue-26237.rs

+1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ fn main() {
1919
let mut value_a = 0;
2020
let mut value_b = 0;
2121
macro_panic!(value_a, value_b);
22+
//~^ in this expansion of macro_panic!
2223
}

src/test/compile-fail/issue-26480.rs

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ macro_rules! cast {
3737
fn main() {
3838
let hello = ['H', 'e', 'y'];
3939
write!(hello);
40+
//~^ NOTE in this expansion of write!
4041

4142
cast!(2);
43+
//~^ NOTE in this expansion of cast!
4244
}

src/test/compile-fail/issue-28308.rs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
// this error is dispayed in `<std macros>`
1212
// error-pattern:cannot apply unary operator `!` to type `&'static str`
13+
// error-pattern:in this expansion of assert!
1314

1415
fn main() {
1516
assert!("foo");

src/test/compile-fail/issue-29084.rs

+1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ macro_rules! foo {
1818

1919
fn main() {
2020
foo!(0u8);
21+
//~^ NOTE in this expansion of foo!
2122
}

src/test/compile-fail/issue-31011.rs

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ struct Foo {
2626
fn wrap<T>(context: &T) -> ()
2727
{
2828
log!(context, "entered wrapper");
29+
//~^ in this expansion of log!
2930
}
3031

3132
fn main() {

0 commit comments

Comments
 (0)