Skip to content

Commit ce95a57

Browse files
committed
Update tests.
1 parent 11c879d commit ce95a57

File tree

6 files changed

+26
-1
lines changed

6 files changed

+26
-1
lines changed

src/test/ui/issues/issue-11692-2.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ error: cannot find macro `test` in this scope
33
|
44
LL | concat!(test!());
55
| ^^^^
6+
|
7+
= note: `test` is in scope, but it is an attribute
68

79
error: aborting due to previous error
810

src/test/ui/macros/issue-88228.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ struct A;
1313

1414
#[derive(println)]
1515
//~^ ERROR cannot find derive macro `println`
16+
//~|`println` is in scope, but it is a function-like macro
1617
struct B;
1718

1819
fn main() {

src/test/ui/macros/issue-88228.stderr

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: cannot find macro `bla` in this scope
2-
--> $DIR/issue-88228.rs:19:5
2+
--> $DIR/issue-88228.rs:20:5
33
|
44
LL | bla!();
55
| ^^^
@@ -12,6 +12,8 @@ error: cannot find derive macro `println` in this scope
1212
|
1313
LL | #[derive(println)]
1414
| ^^^^^^^
15+
|
16+
= note: `println` is in scope, but it is a function-like macro
1517

1618
error: cannot find derive macro `Bla` in this scope
1719
--> $DIR/issue-88228.rs:9:10

src/test/ui/macros/macro-path-prelude-fail-3.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ LL | inline!();
88
|
99
LL | macro_rules! line {
1010
| ----------------- similarly named macro `line` defined here
11+
|
12+
= note: `inline` is in scope, but it is an attribute
1113

1214
error: aborting due to previous error
1315

src/test/ui/proc-macro/macro-namespace-reserved-2.stderr

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,30 +93,40 @@ error: cannot find macro `my_macro_attr` in this scope
9393
|
9494
LL | my_macro_attr!();
9595
| ^^^^^^^^^^^^^
96+
|
97+
= note: `my_macro_attr` is in scope, but it is an attribute
9698

9799
error: cannot find macro `MyTrait` in this scope
98100
--> $DIR/macro-namespace-reserved-2.rs:33:5
99101
|
100102
LL | MyTrait!();
101103
| ^^^^^^^
104+
|
105+
= note: `MyTrait` is in scope, but it is a derive macro
102106

103107
error: cannot find attribute `my_macro` in this scope
104108
--> $DIR/macro-namespace-reserved-2.rs:38:3
105109
|
106110
LL | #[my_macro]
107111
| ^^^^^^^^
112+
|
113+
= note: `my_macro` is in scope, but it is a function-like macro
108114

109115
error: cannot find derive macro `my_macro` in this scope
110116
--> $DIR/macro-namespace-reserved-2.rs:48:10
111117
|
112118
LL | #[derive(my_macro)]
113119
| ^^^^^^^^
120+
|
121+
= note: `my_macro` is in scope, but it is a function-like macro
114122

115123
error: cannot find derive macro `my_macro` in this scope
116124
--> $DIR/macro-namespace-reserved-2.rs:48:10
117125
|
118126
LL | #[derive(my_macro)]
119127
| ^^^^^^^^
128+
|
129+
= note: `my_macro` is in scope, but it is a function-like macro
120130

121131
error: aborting due to 20 previous errors
122132

src/test/ui/tool-attributes/tool-attributes-misplaced-1.stderr

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,32 @@ error: cannot find derive macro `rustfmt` in this scope
33
|
44
LL | #[derive(rustfmt)]
55
| ^^^^^^^
6+
|
7+
= note: `rustfmt` is in scope, but it is not a derive macro
68

79
error: cannot find derive macro `rustfmt` in this scope
810
--> $DIR/tool-attributes-misplaced-1.rs:4:10
911
|
1012
LL | #[derive(rustfmt)]
1113
| ^^^^^^^
14+
|
15+
= note: `rustfmt` is in scope, but it is not a derive macro
1216

1317
error: cannot find attribute `rustfmt` in this scope
1418
--> $DIR/tool-attributes-misplaced-1.rs:9:3
1519
|
1620
LL | #[rustfmt]
1721
| ^^^^^^^
22+
|
23+
= note: `rustfmt` is in scope, but it is not an attribute
1824

1925
error: cannot find macro `rustfmt` in this scope
2026
--> $DIR/tool-attributes-misplaced-1.rs:15:5
2127
|
2228
LL | rustfmt!();
2329
| ^^^^^^^
30+
|
31+
= note: `rustfmt` is in scope, but it is not a macro
2432

2533
error[E0573]: expected type, found tool module `rustfmt`
2634
--> $DIR/tool-attributes-misplaced-1.rs:1:10

0 commit comments

Comments
 (0)