Skip to content

Commit a9b54ab

Browse files
committed
Update ui tests output
1 parent e618a4f commit a9b54ab

13 files changed

+71
-89
lines changed
+27-41
Original file line numberDiff line numberDiff line change
@@ -1,76 +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-
| ^^^^^^^^^^^^^^
6-
|
7-
= help: did you mean `FooWithLongName`?
4+
37 | #[derive(FooWithLongNan)]
5+
| ^^^^^^^^^^^^^^ help: try: `FooWithLongName`
86

97
error: cannot find attribute macro `attr_proc_macra` in this scope
10-
--> $DIR/resolve-error.rs:39:3
11-
|
12-
39 | #[attr_proc_macra]
13-
| ^^^^^^^^^^^^^^^
8+
--> $DIR/resolve-error.rs:40:3
149
|
15-
= help: did you mean `attr_proc_macro`?
10+
40 | #[attr_proc_macra]
11+
| ^^^^^^^^^^^^^^^ help: try: `attr_proc_macro`
1612

1713
error: cannot find attribute macro `FooWithLongNan` in this scope
18-
--> $DIR/resolve-error.rs:42:3
14+
--> $DIR/resolve-error.rs:43:3
1915
|
20-
42 | #[FooWithLongNan]
16+
43 | #[FooWithLongNan]
2117
| ^^^^^^^^^^^^^^
2218

2319
error: cannot find derive macro `Dlone` in this scope
24-
--> $DIR/resolve-error.rs:45:10
20+
--> $DIR/resolve-error.rs:46:10
2521
|
26-
45 | #[derive(Dlone)]
27-
| ^^^^^
28-
|
29-
= help: did you mean `Clone`?
22+
46 | #[derive(Dlone)]
23+
| ^^^^^ help: try: `Clone`
3024

3125
error: cannot find derive macro `Dlona` in this scope
32-
--> $DIR/resolve-error.rs:48:10
33-
|
34-
48 | #[derive(Dlona)]
35-
| ^^^^^
26+
--> $DIR/resolve-error.rs:49:10
3627
|
37-
= help: did you mean `Clona`?
28+
49 | #[derive(Dlona)]
29+
| ^^^^^ help: try: `Clona`
3830

3931
error: cannot find derive macro `attr_proc_macra` in this scope
40-
--> $DIR/resolve-error.rs:51:10
32+
--> $DIR/resolve-error.rs:52:10
4133
|
42-
51 | #[derive(attr_proc_macra)]
34+
52 | #[derive(attr_proc_macra)]
4335
| ^^^^^^^^^^^^^^^
4436

4537
error: cannot find macro `FooWithLongNama!` in this scope
46-
--> $DIR/resolve-error.rs:55:5
38+
--> $DIR/resolve-error.rs:56:5
4739
|
48-
55 | FooWithLongNama!();
49-
| ^^^^^^^^^^^^^^^
50-
|
51-
= help: did you mean `FooWithLongNam!`?
40+
56 | FooWithLongNama!();
41+
| ^^^^^^^^^^^^^^^ help: you could try the macro: `FooWithLongNam!`
5242

5343
error: cannot find macro `attr_proc_macra!` in this scope
54-
--> $DIR/resolve-error.rs:57:5
55-
|
56-
57 | attr_proc_macra!();
57-
| ^^^^^^^^^^^^^^^
44+
--> $DIR/resolve-error.rs:58:5
5845
|
59-
= help: did you mean `attr_proc_mac!`?
46+
58 | attr_proc_macra!();
47+
| ^^^^^^^^^^^^^^^ help: you could try the macro: `attr_proc_mac!`
6048

6149
error: cannot find macro `Dlona!` in this scope
62-
--> $DIR/resolve-error.rs:59:5
50+
--> $DIR/resolve-error.rs:60:5
6351
|
64-
59 | Dlona!();
52+
60 | Dlona!();
6553
| ^^^^^
6654

6755
error: cannot find macro `bang_proc_macrp!` in this scope
68-
--> $DIR/resolve-error.rs:61:5
69-
|
70-
61 | bang_proc_macrp!();
71-
| ^^^^^^^^^^^^^^^
56+
--> $DIR/resolve-error.rs:62:5
7257
|
73-
= help: did you mean `bang_proc_macro!`?
58+
62 | bang_proc_macrp!();
59+
| ^^^^^^^^^^^^^^^ help: you could try the macro: `bang_proc_macro!`
7460

7561
error: aborting due to 10 previous errors
7662

src/test/ui/issue-35675.stderr

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ error[E0412]: cannot find type `Apple` in this scope
55
| ^^^^^
66
| |
77
| not found in this scope
8-
| help: did you mean the variant's enum `Fruit`
8+
| help: you can try using the variant's enum: `Fruit`
99

1010
error[E0425]: cannot find function `Apple` in this scope
1111
--> $DIR/issue-35675.rs:23:5
@@ -23,7 +23,7 @@ error[E0573]: expected type, found variant `Fruit::Apple`
2323
| ^^^^^^^^^^^^
2424
| |
2525
| not a type
26-
| help: did you mean the variant's enum `Fruit`
26+
| help: you can try using the variant's enum: `Fruit`
2727

2828
error[E0425]: cannot find function `Apple` in this scope
2929
--> $DIR/issue-35675.rs:31:5
@@ -40,8 +40,8 @@ error[E0573]: expected type, found variant `Ok`
4040
36 | fn foo() -> Ok {
4141
| ^^ not a type
4242
|
43-
= help: there is an enum variant `std::prelude::v1::Ok`,did you mean to use `std::prelude::v1`?
44-
= help: there is an enum variant `std::prelude::v1::Result::Ok`,did you mean to use `std::prelude::v1::Result`?
43+
= help: there is an enum variant `std::prelude::v1::Ok`, try using `std::prelude::v1`?
44+
= help: there is an enum variant `std::prelude::v1::Result::Ok`, try using `std::prelude::v1::Result`?
4545

4646
error[E0412]: cannot find type `Variant3` in this scope
4747
--> $DIR/issue-35675.rs:44:13
@@ -50,16 +50,16 @@ error[E0412]: cannot find type `Variant3` in this scope
5050
| ^^^^^^^^
5151
| |
5252
| not found in this scope
53-
| help: did you mean the variant's enum `x::Enum`
53+
| help: you can try using the variant's enum: `x::Enum`
5454

5555
error[E0573]: expected type, found variant `Some`
5656
--> $DIR/issue-35675.rs:49:13
5757
|
5858
49 | fn qux() -> Some {
5959
| ^^^^ not a type
6060
|
61-
= help: there is an enum variant `std::option::Option::Some`,did you mean to use `std::option::Option`?
62-
= help: there is an enum variant `std::prelude::v1::Some`,did you mean to use `std::prelude::v1`?
61+
= help: there is an enum variant `std::option::Option::Some`, try using `std::option::Option`?
62+
= help: there is an enum variant `std::prelude::v1::Some`, try using `std::prelude::v1`?
6363

6464
error: aborting due to 7 previous errors
6565

src/test/ui/issue-40402-ref-hints/issue-40402-1.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0507]: cannot move out of indexed content
44
19 | let e = f.v[0];
55
| ^^^^^^
66
| |
7-
| help: consider using a reference instead `&f.v[0]`
7+
| help: consider using a reference instead: `&f.v[0]`
88
| cannot move out of indexed content
99

1010
error: aborting due to previous error

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ error: cannot find macro `printlx!` in this scope
22
--> $DIR/macro-name-typo.rs:12:5
33
|
44
12 | printlx!("oh noes!");
5-
| ^^^^^^^
6-
|
7-
= help: did you mean `println!`?
5+
| ^^^^^^^ help: you could try the macro: `println!`
86

97
error: aborting due to previous error
108

src/test/ui/macros/macro_undefined.stderr

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ error: cannot find macro `k!` in this scope
1010
--> $DIR/macro_undefined.rs:21:5
1111
|
1212
21 | k!();
13-
| ^
14-
|
15-
= help: did you mean `kl!`?
13+
| ^ help: you could try the macro: `kl!`
1614

1715
error: aborting due to 2 previous errors
1816

src/test/ui/resolve/issue-14254.stderr

+19-19
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0425]: cannot find function `baz` in this scope
22
--> $DIR/issue-14254.rs:29:9
33
|
44
29 | baz();
5-
| ^^^ help: did you mean `self.baz`
5+
| ^^^ help: try: `self.baz`
66

77
error[E0425]: cannot find value `a` in this scope
88
--> $DIR/issue-14254.rs:32:9
@@ -14,19 +14,19 @@ error[E0425]: cannot find function `baz` in this scope
1414
--> $DIR/issue-14254.rs:40:9
1515
|
1616
40 | baz();
17-
| ^^^ help: did you mean `self.baz`
17+
| ^^^ help: try: `self.baz`
1818

1919
error[E0425]: cannot find value `x` in this scope
2020
--> $DIR/issue-14254.rs:43:9
2121
|
2222
43 | x;
23-
| ^ help: did you mean `self.x`
23+
| ^ help: try: `self.x`
2424

2525
error[E0425]: cannot find value `y` in this scope
2626
--> $DIR/issue-14254.rs:46:9
2727
|
2828
46 | y;
29-
| ^ help: did you mean `self.y`
29+
| ^ help: try: `self.y`
3030

3131
error[E0425]: cannot find value `a` in this scope
3232
--> $DIR/issue-14254.rs:49:9
@@ -38,7 +38,7 @@ error[E0425]: cannot find value `bah` in this scope
3838
--> $DIR/issue-14254.rs:52:9
3939
|
4040
52 | bah;
41-
| ^^^ help: did you mean `Self::bah`
41+
| ^^^ help: try: `Self::bah`
4242

4343
error[E0425]: cannot find value `b` in this scope
4444
--> $DIR/issue-14254.rs:55:9
@@ -50,19 +50,19 @@ error[E0425]: cannot find function `baz` in this scope
5050
--> $DIR/issue-14254.rs:63:9
5151
|
5252
63 | baz();
53-
| ^^^ help: did you mean `self.baz`
53+
| ^^^ help: try: `self.baz`
5454

5555
error[E0425]: cannot find value `x` in this scope
5656
--> $DIR/issue-14254.rs:66:9
5757
|
5858
66 | x;
59-
| ^ help: did you mean `self.x`
59+
| ^ help: try: `self.x`
6060

6161
error[E0425]: cannot find value `y` in this scope
6262
--> $DIR/issue-14254.rs:69:9
6363
|
6464
69 | y;
65-
| ^ help: did you mean `self.y`
65+
| ^ help: try: `self.y`
6666

6767
error[E0425]: cannot find value `a` in this scope
6868
--> $DIR/issue-14254.rs:72:9
@@ -74,7 +74,7 @@ error[E0425]: cannot find value `bah` in this scope
7474
--> $DIR/issue-14254.rs:75:9
7575
|
7676
75 | bah;
77-
| ^^^ help: did you mean `Self::bah`
77+
| ^^^ help: try: `Self::bah`
7878

7979
error[E0425]: cannot find value `b` in this scope
8080
--> $DIR/issue-14254.rs:78:9
@@ -86,61 +86,61 @@ error[E0425]: cannot find function `baz` in this scope
8686
--> $DIR/issue-14254.rs:86:9
8787
|
8888
86 | baz();
89-
| ^^^ help: did you mean `self.baz`
89+
| ^^^ help: try: `self.baz`
9090

9191
error[E0425]: cannot find value `bah` in this scope
9292
--> $DIR/issue-14254.rs:89:9
9393
|
9494
89 | bah;
95-
| ^^^ help: did you mean `Self::bah`
95+
| ^^^ help: try: `Self::bah`
9696

9797
error[E0425]: cannot find function `baz` in this scope
9898
--> $DIR/issue-14254.rs:97:9
9999
|
100100
97 | baz();
101-
| ^^^ help: did you mean `self.baz`
101+
| ^^^ help: try: `self.baz`
102102

103103
error[E0425]: cannot find value `bah` in this scope
104104
--> $DIR/issue-14254.rs:100:9
105105
|
106106
100 | bah;
107-
| ^^^ help: did you mean `Self::bah`
107+
| ^^^ help: try: `Self::bah`
108108

109109
error[E0425]: cannot find function `baz` in this scope
110110
--> $DIR/issue-14254.rs:108:9
111111
|
112112
108 | baz();
113-
| ^^^ help: did you mean `self.baz`
113+
| ^^^ help: try: `self.baz`
114114

115115
error[E0425]: cannot find value `bah` in this scope
116116
--> $DIR/issue-14254.rs:111:9
117117
|
118118
111 | bah;
119-
| ^^^ help: did you mean `Self::bah`
119+
| ^^^ help: try: `Self::bah`
120120

121121
error[E0425]: cannot find function `baz` in this scope
122122
--> $DIR/issue-14254.rs:119:9
123123
|
124124
119 | baz();
125-
| ^^^ help: did you mean `self.baz`
125+
| ^^^ help: try: `self.baz`
126126

127127
error[E0425]: cannot find value `bah` in this scope
128128
--> $DIR/issue-14254.rs:122:9
129129
|
130130
122 | bah;
131-
| ^^^ help: did you mean `Self::bah`
131+
| ^^^ help: try: `Self::bah`
132132

133133
error[E0425]: cannot find function `baz` in this scope
134134
--> $DIR/issue-14254.rs:130:9
135135
|
136136
130 | baz();
137-
| ^^^ help: did you mean `self.baz`
137+
| ^^^ help: try: `self.baz`
138138

139139
error[E0425]: cannot find value `bah` in this scope
140140
--> $DIR/issue-14254.rs:133:9
141141
|
142142
133 | bah;
143-
| ^^^ help: did you mean `Self::bah`
143+
| ^^^ help: try: `Self::bah`
144144

145145
error: main function not found
146146

src/test/ui/resolve/issue-2356.stderr

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,28 @@ error[E0425]: cannot find function `clone` in this scope
88
--> $DIR/issue-2356.rs:35:5
99
|
1010
35 | clone();
11-
| ^^^^^ help: did you mean `self.clone`
11+
| ^^^^^ help: try: `self.clone`
1212

1313
error[E0425]: cannot find function `default` in this scope
1414
--> $DIR/issue-2356.rs:43:5
1515
|
1616
43 | default();
17-
| ^^^^^^^ help: did you mean `Self::default`
17+
| ^^^^^^^ help: try: `Self::default`
1818

1919
error[E0425]: cannot find value `whiskers` in this scope
2020
--> $DIR/issue-2356.rs:52:5
2121
|
2222
52 | whiskers -= other;
2323
| ^^^^^^^^
2424
| |
25-
| help: did you mean `self.whiskers`
25+
| help: try: `self.whiskers`
2626
| `self` value is only available in methods with `self` parameter
2727

2828
error[E0425]: cannot find function `shave` in this scope
2929
--> $DIR/issue-2356.rs:57:5
3030
|
3131
57 | shave(4);
32-
| ^^^^^ help: did you mean `Self::shave`
32+
| ^^^^^ help: try: `Self::shave`
3333

3434
error[E0425]: cannot find function `purr` in this scope
3535
--> $DIR/issue-2356.rs:60:5
@@ -83,15 +83,15 @@ error[E0425]: cannot find value `whiskers` in this scope
8383
--> $DIR/issue-2356.rs:104:5
8484
|
8585
104 | whiskers = 0;
86-
| ^^^^^^^^ help: did you mean `self.whiskers`
86+
| ^^^^^^^^ help: try: `self.whiskers`
8787

8888
error[E0425]: cannot find value `whiskers` in this scope
8989
--> $DIR/issue-2356.rs:110:5
9090
|
9191
110 | whiskers = 4;
9292
| ^^^^^^^^
9393
| |
94-
| help: did you mean `self.whiskers`
94+
| help: try: `self.whiskers`
9595
| `self` value is only available in methods with `self` parameter
9696

9797
error[E0425]: cannot find function `purr_louder` in this scope

0 commit comments

Comments
 (0)