Skip to content

Commit 706f7be

Browse files
Bless uitests
1 parent a095e61 commit 706f7be

24 files changed

Lines changed: 180 additions & 180 deletions

tests/ui/attributes/attr-on-mac-call.stderr

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ warning: `#[export_name]` attribute cannot be used on macro calls
44
LL | #[export_name = "x"]
55
| ^^^^^^^^^^^^^^^^^^^^
66
|
7-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
87
= help: `#[export_name]` can be applied to functions and statics
8+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
99
note: the lint level is defined here
1010
--> $DIR/attr-on-mac-call.rs:3:9
1111
|
@@ -18,188 +18,188 @@ warning: `#[naked]` attribute cannot be used on macro calls
1818
LL | #[unsafe(naked)]
1919
| ^^^^^^^^^^^^^^^^
2020
|
21-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
2221
= help: `#[naked]` can only be applied to functions
22+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
2323

2424
warning: `#[track_caller]` attribute cannot be used on macro calls
2525
--> $DIR/attr-on-mac-call.rs:12:5
2626
|
2727
LL | #[track_caller]
2828
| ^^^^^^^^^^^^^^^
2929
|
30-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
3130
= help: `#[track_caller]` can only be applied to functions
31+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
3232

3333
warning: `#[used]` attribute cannot be used on macro calls
3434
--> $DIR/attr-on-mac-call.rs:15:5
3535
|
3636
LL | #[used]
3737
| ^^^^^^^
3838
|
39-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
4039
= help: `#[used]` can only be applied to statics
40+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
4141

4242
warning: `#[target_feature]` attribute cannot be used on macro calls
4343
--> $DIR/attr-on-mac-call.rs:18:5
4444
|
4545
LL | #[target_feature(enable = "x")]
4646
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4747
|
48-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
4948
= help: `#[target_feature]` can only be applied to functions
49+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
5050

5151
warning: `#[deprecated]` attribute cannot be used on macro calls
5252
--> $DIR/attr-on-mac-call.rs:21:5
5353
|
5454
LL | #[deprecated]
5555
| ^^^^^^^^^^^^^
5656
|
57-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
5857
= help: `#[deprecated]` can be applied to associated consts, associated types, constants, crates, data types, enum variants, foreign statics, functions, inherent impl blocks, macro defs, modules, statics, struct fields, traits, type aliases, and use statements
58+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
5959

6060
warning: `#[inline]` attribute cannot be used on macro calls
6161
--> $DIR/attr-on-mac-call.rs:24:5
6262
|
6363
LL | #[inline]
6464
| ^^^^^^^^^
6565
|
66-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
6766
= help: `#[inline]` can only be applied to functions
67+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
6868

6969
warning: `#[link_name]` attribute cannot be used on macro calls
7070
--> $DIR/attr-on-mac-call.rs:27:5
7171
|
7272
LL | #[link_name = "x"]
7373
| ^^^^^^^^^^^^^^^^^^
7474
|
75-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
7675
= help: `#[link_name]` can be applied to foreign functions and foreign statics
76+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
7777

7878
warning: `#[link_section]` attribute cannot be used on macro calls
7979
--> $DIR/attr-on-mac-call.rs:30:5
8080
|
8181
LL | #[link_section = "__TEXT,__text"]
8282
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8383
|
84-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8584
= help: `#[link_section]` can be applied to functions and statics
85+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8686

8787
warning: `#[link_ordinal]` attribute cannot be used on macro calls
8888
--> $DIR/attr-on-mac-call.rs:33:5
8989
|
9090
LL | #[link_ordinal(42)]
9191
| ^^^^^^^^^^^^^^^^^^^
9292
|
93-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
9493
= help: `#[link_ordinal]` can be applied to foreign functions and foreign statics
94+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
9595

9696
warning: `#[non_exhaustive]` attribute cannot be used on macro calls
9797
--> $DIR/attr-on-mac-call.rs:36:5
9898
|
9999
LL | #[non_exhaustive]
100100
| ^^^^^^^^^^^^^^^^^
101101
|
102-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
103102
= help: `#[non_exhaustive]` can be applied to data types and enum variants
103+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
104104

105105
warning: `#[proc_macro]` attribute cannot be used on macro calls
106106
--> $DIR/attr-on-mac-call.rs:39:5
107107
|
108108
LL | #[proc_macro]
109109
| ^^^^^^^^^^^^^
110110
|
111-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
112111
= help: `#[proc_macro]` can only be applied to functions
112+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
113113

114114
warning: `#[cold]` attribute cannot be used on macro calls
115115
--> $DIR/attr-on-mac-call.rs:42:5
116116
|
117117
LL | #[cold]
118118
| ^^^^^^^
119119
|
120-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
121120
= help: `#[cold]` can only be applied to functions
121+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
122122

123123
warning: `#[no_mangle]` attribute cannot be used on macro calls
124124
--> $DIR/attr-on-mac-call.rs:45:5
125125
|
126126
LL | #[no_mangle]
127127
| ^^^^^^^^^^^^
128128
|
129-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
130129
= help: `#[no_mangle]` can be applied to functions and statics
130+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
131131

132132
warning: `#[deprecated]` attribute cannot be used on macro calls
133133
--> $DIR/attr-on-mac-call.rs:48:5
134134
|
135135
LL | #[deprecated]
136136
| ^^^^^^^^^^^^^
137137
|
138-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
139138
= help: `#[deprecated]` can be applied to associated consts, associated types, constants, crates, data types, enum variants, foreign statics, functions, inherent impl blocks, macro defs, modules, statics, struct fields, traits, type aliases, and use statements
139+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
140140

141141
warning: `#[automatically_derived]` attribute cannot be used on macro calls
142142
--> $DIR/attr-on-mac-call.rs:51:5
143143
|
144144
LL | #[automatically_derived]
145145
| ^^^^^^^^^^^^^^^^^^^^^^^^
146146
|
147-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
148147
= help: `#[automatically_derived]` can only be applied to trait impl blocks
148+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
149149

150150
warning: `#[macro_use]` attribute cannot be used on macro calls
151151
--> $DIR/attr-on-mac-call.rs:54:5
152152
|
153153
LL | #[macro_use]
154154
| ^^^^^^^^^^^^
155155
|
156-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
157156
= help: `#[macro_use]` can be applied to crates, extern crates, and modules
157+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
158158

159159
warning: `#[must_use]` attribute cannot be used on macro calls
160160
--> $DIR/attr-on-mac-call.rs:57:5
161161
|
162162
LL | #[must_use]
163163
| ^^^^^^^^^^^
164164
|
165-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
166165
= help: `#[must_use]` can be applied to data types, functions, and traits
166+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
167167

168168
warning: `#[no_implicit_prelude]` attribute cannot be used on macro calls
169169
--> $DIR/attr-on-mac-call.rs:60:5
170170
|
171171
LL | #[no_implicit_prelude]
172172
| ^^^^^^^^^^^^^^^^^^^^^^
173173
|
174-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
175174
= help: `#[no_implicit_prelude]` can be applied to crates and modules
175+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
176176

177177
warning: `#[path]` attribute cannot be used on macro calls
178178
--> $DIR/attr-on-mac-call.rs:63:5
179179
|
180180
LL | #[path = ""]
181181
| ^^^^^^^^^^^^
182182
|
183-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
184183
= help: `#[path]` can only be applied to modules
184+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
185185

186186
warning: `#[ignore]` attribute cannot be used on macro calls
187187
--> $DIR/attr-on-mac-call.rs:66:5
188188
|
189189
LL | #[ignore]
190190
| ^^^^^^^^^
191191
|
192-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
193192
= help: `#[ignore]` can only be applied to functions
193+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
194194

195195
warning: `#[should_panic]` attribute cannot be used on macro calls
196196
--> $DIR/attr-on-mac-call.rs:69:5
197197
|
198198
LL | #[should_panic]
199199
| ^^^^^^^^^^^^^^^
200200
|
201-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
202201
= help: `#[should_panic]` can only be applied to functions
202+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
203203

204204
warning: 22 warnings emitted
205205

tests/ui/attributes/codegen_attr_on_required_trait_method.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ error: `#[cold]` attribute cannot be used on required trait methods
44
LL | #[cold]
55
| ^^^^^^^
66
|
7-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
87
= help: `#[cold]` can be applied to closures, foreign functions, functions, inherent methods, provided trait methods, and trait methods in impl blocks
8+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
99
note: the lint level is defined here
1010
--> $DIR/codegen_attr_on_required_trait_method.rs:1:9
1111
|
@@ -18,17 +18,17 @@ error: `#[link_section]` attribute cannot be used on required trait methods
1818
LL | #[link_section = "__TEXT,__text"]
1919
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020
|
21-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
2221
= help: `#[link_section]` can be applied to functions, inherent methods, provided trait methods, statics, and trait methods in impl blocks
22+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
2323

2424
error: `#[linkage]` attribute cannot be used on required trait methods
2525
--> $DIR/codegen_attr_on_required_trait_method.rs:14:5
2626
|
2727
LL | #[linkage = "common"]
2828
| ^^^^^^^^^^^^^^^^^^^^^
2929
|
30-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
3130
= help: `#[linkage]` can be applied to foreign functions, foreign statics, functions, inherent methods, provided trait methods, statics, and trait methods in impl blocks
31+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
3232

3333
error: aborting due to 3 previous errors
3434

tests/ui/attributes/cold-attribute-application-54044.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ error: `#[cold]` attribute cannot be used on structs
44
LL | #[cold]
55
| ^^^^^^^
66
|
7-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
87
= help: `#[cold]` can only be applied to functions
8+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
99
note: the lint level is defined here
1010
--> $DIR/cold-attribute-application-54044.rs:2:9
1111
|
@@ -18,8 +18,8 @@ error: `#[cold]` attribute cannot be used on expressions
1818
LL | #[cold]
1919
| ^^^^^^^
2020
|
21-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
2221
= help: `#[cold]` can only be applied to functions
22+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
2323

2424
error: aborting due to 2 previous errors
2525

tests/ui/attributes/inline/attr-usage-inline.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ warning: `#[inline]` attribute cannot be used on struct fields
1818
LL | #[inline]
1919
| ^^^^^^^^^
2020
|
21-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
2221
= help: `#[inline]` can only be applied to functions
22+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
2323
= note: requested on the command line with `-W unused-attributes`
2424

2525
warning: `#[inline]` attribute cannot be used on macro defs
@@ -28,17 +28,17 @@ warning: `#[inline]` attribute cannot be used on macro defs
2828
LL | #[inline]
2929
| ^^^^^^^^^
3030
|
31-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
3231
= help: `#[inline]` can only be applied to functions
32+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
3333

3434
warning: `#[inline]` attribute cannot be used on macro defs
3535
--> $DIR/attr-usage-inline.rs:25:1
3636
|
3737
LL | #[inline]
3838
| ^^^^^^^^^
3939
|
40-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
4140
= help: `#[inline]` can only be applied to functions
41+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
4242

4343
error: aborting due to 2 previous errors; 3 warnings emitted
4444

tests/ui/attributes/malformed-attrs.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -890,8 +890,8 @@ warning: `#[link_name]` attribute cannot be used on functions
890890
LL | #[link_name]
891891
| ^^^^^^^^^^^^
892892
|
893-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
894893
= help: `#[link_name]` can be applied to foreign functions and foreign statics
894+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
895895

896896
error: valid forms for the attribute are `#[ignore = "reason"]` and `#[ignore]`
897897
--> $DIR/malformed-attrs.rs:96:1
@@ -908,8 +908,8 @@ warning: `#[no_implicit_prelude]` attribute cannot be used on functions
908908
LL | #[no_implicit_prelude = 23]
909909
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
910910
|
911-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
912911
= help: `#[no_implicit_prelude]` can be applied to crates and modules
912+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
913913

914914
warning: missing options for `diagnostic::on_unimplemented` attribute
915915
--> $DIR/malformed-attrs.rs:138:1
@@ -940,8 +940,8 @@ warning: `#[automatically_derived]` attribute cannot be used on modules
940940
LL | #[automatically_derived = 18]
941941
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
942942
|
943-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
944943
= help: `#[automatically_derived]` can only be applied to trait impl blocks
944+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
945945

946946
error: valid forms for the attribute are `#[ignore = "reason"]` and `#[ignore]`
947947
--> $DIR/malformed-attrs.rs:222:1

tests/ui/conditional-compilation/cfg_attr-attr-syntax-validation.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ warning: `#[link_section]` attribute cannot be used on structs
171171
LL | #[cfg_attr(true, link_section)]
172172
| ^^^^^^^^^^^^
173173
|
174-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
175174
= help: `#[link_section]` can be applied to functions and statics
175+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
176176
= note: requested on the command line with `-W unused-attributes`
177177

178178
error: aborting due to 13 previous errors; 1 warning emitted

tests/ui/const-generics/invalid-attributes-on-const-params-78957.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ error: `#[cold]` attribute cannot be used on const parameters
4646
LL | pub struct Bar<#[cold] const N: usize>;
4747
| ^^^^^^^
4848
|
49-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
5049
= help: `#[cold]` can only be applied to functions
50+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
5151
note: the lint level is defined here
5252
--> $DIR/invalid-attributes-on-const-params-78957.rs:2:9
5353
|
@@ -60,17 +60,17 @@ error: `#[cold]` attribute cannot be used on lifetime parameters
6060
LL | pub struct Bar2<#[cold] 'a>(PhantomData<&'a ()>);
6161
| ^^^^^^^
6262
|
63-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
6463
= help: `#[cold]` can only be applied to functions
64+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
6565

6666
error: `#[cold]` attribute cannot be used on type parameters
6767
--> $DIR/invalid-attributes-on-const-params-78957.rs:24:17
6868
|
6969
LL | pub struct Bar3<#[cold] T>(PhantomData<T>);
7070
| ^^^^^^^
7171
|
72-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
7372
= help: `#[cold]` can only be applied to functions
73+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
7474

7575
error: aborting due to 9 previous errors
7676

0 commit comments

Comments
 (0)