Skip to content

Commit 1343bc6

Browse files
committed
Readd //~ERROR messages
1 parent 6f681c2 commit 1343bc6

7 files changed

+46
-31
lines changed

src/test/ui-fulldeps/resolve-error.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,29 +35,39 @@ macro_rules! attr_proc_mac {
3535
}
3636

3737
#[derive(FooWithLongNan)]
38+
//~^ ERROR cannot find derive macro `FooWithLongNan` in this scope
3839
struct Foo;
3940

4041
#[attr_proc_macra]
42+
//~^ ERROR cannot find attribute macro `attr_proc_macra` in this scope
4143
struct Bar;
4244

4345
#[FooWithLongNan]
46+
//~^ ERROR cannot find attribute macro `FooWithLongNan` in this scope
4447
struct Asdf;
4548

4649
#[derive(Dlone)]
50+
//~^ ERROR cannot find derive macro `Dlone` in this scope
4751
struct A;
4852

4953
#[derive(Dlona)]
54+
//~^ ERROR cannot find derive macro `Dlona` in this scope
5055
struct B;
5156

5257
#[derive(attr_proc_macra)]
58+
//~^ ERROR cannot find derive macro `attr_proc_macra` in this scope
5359
struct C;
5460

5561
fn main() {
5662
FooWithLongNama!();
63+
//~^ ERROR cannot find macro `FooWithLongNama!` in this scope
5764

5865
attr_proc_macra!();
66+
//~^ ERROR cannot find macro `attr_proc_macra!` in this scope
5967

6068
Dlona!();
69+
//~^ ERROR cannot find macro `Dlona!` in this scope
6170

6271
bang_proc_macrp!();
72+
//~^ ERROR cannot find macro `bang_proc_macrp!` in this scope
6373
}

src/test/ui/cast-to-unsized-trait-object-suggestion.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@
1010

1111
fn main() {
1212
&1 as Send;
13+
//~^ ERROR cast to unsized type
1314
Box::new(1) as Send;
15+
//~^ ERROR cast to unsized type
1416
}

src/test/ui/cast-to-unsized-trait-object-suggestion.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ error: cast to unsized type: `&{integer}` as `std::marker::Send`
77
| help: try casting to a reference instead: `&Send`
88

99
error: cast to unsized type: `std::boxed::Box<{integer}>` as `std::marker::Send`
10-
--> $DIR/cast-to-unsized-trait-object-suggestion.rs:13:5
10+
--> $DIR/cast-to-unsized-trait-object-suggestion.rs:14:5
1111
|
12-
13 | Box::new(1) as Send;
12+
14 | Box::new(1) as Send;
1313
| ^^^^^^^^^^^^^^^----
1414
| |
1515
| help: try casting to a `Box` instead: `Box<Send>`

src/test/ui/macros/macro-name-typo.rs

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

1111
fn main() {
1212
printlx!("oh noes!");
13+
//~^ ERROR cannot find macro
1314
}

src/test/ui/macros/macro_undefined.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,7 @@ mod m {
1919

2020
fn main() {
2121
k!();
22+
//~^ ERROR cannot find macro `k!` in this scope
2223
kl!();
24+
//~^ ERROR cannot find macro `kl!` in this scope
2325
}

src/test/ui/macros/macro_undefined.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error: cannot find macro `kl!` in this scope
2-
--> $DIR/macro_undefined.rs:22:5
2+
--> $DIR/macro_undefined.rs:23:5
33
|
4-
22 | kl!();
4+
23 | kl!();
55
| ^^
66
|
77
= help: have you added the `#[macro_use]` on the module/import?

src/test/ui/resolve-error.stderr

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,62 @@
11
error: cannot find derive macro `FooWithLongNan` in this scope
2-
--> $DIR/resolve-error.rs:36:10
2+
--> $DIR/resolve-error.rs:37:10
33
|
4-
36 | #[derive(FooWithLongNan)]
5-
| ^^^^^^^^^^^^^^ help: did you mean `FooWithLongName`
4+
37 | #[derive(FooWithLongNan)]
5+
| ^^^^^^^^^^^^^^ help: try: `FooWithLongName`
66

77
error: cannot find attribute macro `attr_proc_macra` in this scope
8-
--> $DIR/resolve-error.rs:39:3
8+
--> $DIR/resolve-error.rs:41:3
99
|
10-
39 | #[attr_proc_macra]
11-
| ^^^^^^^^^^^^^^^ help: did you mean `attr_proc_macro`
10+
41 | #[attr_proc_macra]
11+
| ^^^^^^^^^^^^^^^ help: try: `attr_proc_macro`
1212

1313
error: cannot find attribute macro `FooWithLongNan` in this scope
14-
--> $DIR/resolve-error.rs:42:3
14+
--> $DIR/resolve-error.rs:45:3
1515
|
16-
42 | #[FooWithLongNan]
16+
45 | #[FooWithLongNan]
1717
| ^^^^^^^^^^^^^^
1818

1919
error: cannot find derive macro `Dlone` in this scope
20-
--> $DIR/resolve-error.rs:45:10
20+
--> $DIR/resolve-error.rs:49:10
2121
|
22-
45 | #[derive(Dlone)]
23-
| ^^^^^ help: did you mean `Clone`
22+
49 | #[derive(Dlone)]
23+
| ^^^^^ help: try: `Clone`
2424

2525
error: cannot find derive macro `Dlona` in this scope
26-
--> $DIR/resolve-error.rs:48:10
26+
--> $DIR/resolve-error.rs:53:10
2727
|
28-
48 | #[derive(Dlona)]
29-
| ^^^^^ help: did you mean `Clona`
28+
53 | #[derive(Dlona)]
29+
| ^^^^^ help: try: `Clona`
3030

3131
error: cannot find derive macro `attr_proc_macra` in this scope
32-
--> $DIR/resolve-error.rs:51:10
32+
--> $DIR/resolve-error.rs:57:10
3333
|
34-
51 | #[derive(attr_proc_macra)]
34+
57 | #[derive(attr_proc_macra)]
3535
| ^^^^^^^^^^^^^^^
3636

3737
error: cannot find macro `FooWithLongNama!` in this scope
38-
--> $DIR/resolve-error.rs:55:5
38+
--> $DIR/resolve-error.rs:62:5
3939
|
40-
55 | FooWithLongNama!();
41-
| ^^^^^^^^^^^^^^^ help: did you mean `FooWithLongNam!`
40+
62 | FooWithLongNama!();
41+
| ^^^^^^^^^^^^^^^ help: you could try the macro: `FooWithLongNam!`
4242

4343
error: cannot find macro `attr_proc_macra!` in this scope
44-
--> $DIR/resolve-error.rs:57:5
44+
--> $DIR/resolve-error.rs:65:5
4545
|
46-
57 | attr_proc_macra!();
47-
| ^^^^^^^^^^^^^^^ help: did you mean `attr_proc_mac!`
46+
65 | attr_proc_macra!();
47+
| ^^^^^^^^^^^^^^^ help: you could try the macro: `attr_proc_mac!`
4848

4949
error: cannot find macro `Dlona!` in this scope
50-
--> $DIR/resolve-error.rs:59:5
50+
--> $DIR/resolve-error.rs:68:5
5151
|
52-
59 | Dlona!();
52+
68 | Dlona!();
5353
| ^^^^^
5454

5555
error: cannot find macro `bang_proc_macrp!` in this scope
56-
--> $DIR/resolve-error.rs:61:5
56+
--> $DIR/resolve-error.rs:71:5
5757
|
58-
61 | bang_proc_macrp!();
59-
| ^^^^^^^^^^^^^^^ help: did you mean `bang_proc_macro!`
58+
71 | bang_proc_macrp!();
59+
| ^^^^^^^^^^^^^^^ help: you could try the macro: `bang_proc_macro!`
6060

6161
error: aborting due to 10 previous errors
6262

0 commit comments

Comments
 (0)