You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of #157291 - JonathanBrouwer:cleanup-target-checking, r=mejrs
Clean up attribute target checking diagnostics
Split off from me trying to process your review comments in #157215
Thanks to @GuillaumeGomez for making this possible <3
r? @mejrs
Copy file name to clipboardExpand all lines: tests/ui/attributes/attr-on-mac-call.stderr
+22-22Lines changed: 22 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,8 @@ warning: `#[export_name]` attribute cannot be used on macro calls
4
4
LL | #[export_name = "x"]
5
5
| ^^^^^^^^^^^^^^^^^^^^
6
6
|
7
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8
7
= 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!
9
9
note: the lint level is defined here
10
10
--> $DIR/attr-on-mac-call.rs:3:9
11
11
|
@@ -18,188 +18,188 @@ warning: `#[naked]` attribute cannot be used on macro calls
18
18
LL | #[unsafe(naked)]
19
19
| ^^^^^^^^^^^^^^^^
20
20
|
21
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
22
21
= 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!
23
23
24
24
warning: `#[track_caller]` attribute cannot be used on macro calls
25
25
--> $DIR/attr-on-mac-call.rs:12:5
26
26
|
27
27
LL | #[track_caller]
28
28
| ^^^^^^^^^^^^^^^
29
29
|
30
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
31
30
= 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!
32
32
33
33
warning: `#[used]` attribute cannot be used on macro calls
34
34
--> $DIR/attr-on-mac-call.rs:15:5
35
35
|
36
36
LL | #[used]
37
37
| ^^^^^^^
38
38
|
39
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
40
39
= 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!
41
41
42
42
warning: `#[target_feature]` attribute cannot be used on macro calls
43
43
--> $DIR/attr-on-mac-call.rs:18:5
44
44
|
45
45
LL | #[target_feature(enable = "x")]
46
46
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47
47
|
48
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
49
48
= 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!
50
50
51
51
warning: `#[deprecated]` attribute cannot be used on macro calls
52
52
--> $DIR/attr-on-mac-call.rs:21:5
53
53
|
54
54
LL | #[deprecated]
55
55
| ^^^^^^^^^^^^^
56
56
|
57
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
58
57
= 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!
59
59
60
60
warning: `#[inline]` attribute cannot be used on macro calls
61
61
--> $DIR/attr-on-mac-call.rs:24:5
62
62
|
63
63
LL | #[inline]
64
64
| ^^^^^^^^^
65
65
|
66
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
67
66
= 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!
68
68
69
69
warning: `#[link_name]` attribute cannot be used on macro calls
70
70
--> $DIR/attr-on-mac-call.rs:27:5
71
71
|
72
72
LL | #[link_name = "x"]
73
73
| ^^^^^^^^^^^^^^^^^^
74
74
|
75
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
76
75
= 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!
77
77
78
78
warning: `#[link_section]` attribute cannot be used on macro calls
79
79
--> $DIR/attr-on-mac-call.rs:30:5
80
80
|
81
81
LL | #[link_section = "__TEXT,__text"]
82
82
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
83
83
|
84
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
85
84
= 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!
86
86
87
87
warning: `#[link_ordinal]` attribute cannot be used on macro calls
88
88
--> $DIR/attr-on-mac-call.rs:33:5
89
89
|
90
90
LL | #[link_ordinal(42)]
91
91
| ^^^^^^^^^^^^^^^^^^^
92
92
|
93
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
94
93
= 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!
95
95
96
96
warning: `#[non_exhaustive]` attribute cannot be used on macro calls
97
97
--> $DIR/attr-on-mac-call.rs:36:5
98
98
|
99
99
LL | #[non_exhaustive]
100
100
| ^^^^^^^^^^^^^^^^^
101
101
|
102
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
103
102
= 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!
104
104
105
105
warning: `#[proc_macro]` attribute cannot be used on macro calls
106
106
--> $DIR/attr-on-mac-call.rs:39:5
107
107
|
108
108
LL | #[proc_macro]
109
109
| ^^^^^^^^^^^^^
110
110
|
111
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
112
111
= 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!
113
113
114
114
warning: `#[cold]` attribute cannot be used on macro calls
115
115
--> $DIR/attr-on-mac-call.rs:42:5
116
116
|
117
117
LL | #[cold]
118
118
| ^^^^^^^
119
119
|
120
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
121
120
= 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!
122
122
123
123
warning: `#[no_mangle]` attribute cannot be used on macro calls
124
124
--> $DIR/attr-on-mac-call.rs:45:5
125
125
|
126
126
LL | #[no_mangle]
127
127
| ^^^^^^^^^^^^
128
128
|
129
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
130
129
= 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!
131
131
132
132
warning: `#[deprecated]` attribute cannot be used on macro calls
133
133
--> $DIR/attr-on-mac-call.rs:48:5
134
134
|
135
135
LL | #[deprecated]
136
136
| ^^^^^^^^^^^^^
137
137
|
138
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
139
138
= 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!
140
140
141
141
warning: `#[automatically_derived]` attribute cannot be used on macro calls
142
142
--> $DIR/attr-on-mac-call.rs:51:5
143
143
|
144
144
LL | #[automatically_derived]
145
145
| ^^^^^^^^^^^^^^^^^^^^^^^^
146
146
|
147
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
148
147
= 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!
149
149
150
150
warning: `#[macro_use]` attribute cannot be used on macro calls
151
151
--> $DIR/attr-on-mac-call.rs:54:5
152
152
|
153
153
LL | #[macro_use]
154
154
| ^^^^^^^^^^^^
155
155
|
156
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
157
156
= 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!
158
158
159
159
warning: `#[must_use]` attribute cannot be used on macro calls
160
160
--> $DIR/attr-on-mac-call.rs:57:5
161
161
|
162
162
LL | #[must_use]
163
163
| ^^^^^^^^^^^
164
164
|
165
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
166
165
= 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!
167
167
168
168
warning: `#[no_implicit_prelude]` attribute cannot be used on macro calls
169
169
--> $DIR/attr-on-mac-call.rs:60:5
170
170
|
171
171
LL | #[no_implicit_prelude]
172
172
| ^^^^^^^^^^^^^^^^^^^^^^
173
173
|
174
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
175
174
= 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!
176
176
177
177
warning: `#[path]` attribute cannot be used on macro calls
178
178
--> $DIR/attr-on-mac-call.rs:63:5
179
179
|
180
180
LL | #[path = ""]
181
181
| ^^^^^^^^^^^^
182
182
|
183
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
184
183
= 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!
185
185
186
186
warning: `#[ignore]` attribute cannot be used on macro calls
187
187
--> $DIR/attr-on-mac-call.rs:66:5
188
188
|
189
189
LL | #[ignore]
190
190
| ^^^^^^^^^
191
191
|
192
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
193
192
= 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!
194
194
195
195
warning: `#[should_panic]` attribute cannot be used on macro calls
196
196
--> $DIR/attr-on-mac-call.rs:69:5
197
197
|
198
198
LL | #[should_panic]
199
199
| ^^^^^^^^^^^^^^^
200
200
|
201
-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
202
201
= 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!
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
31
30
= 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!
0 commit comments