1
1
error: attribute must be of the form `#[inline]` or `#[inline(always|never)]`
2
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:19 :5
2
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:41 :5
3
3
|
4
4
LL | #[inline = "2100"] fn f() { }
5
5
| ^^^^^^^^^^^^^^^^^^
@@ -9,7 +9,7 @@ LL | #[inline = "2100"] fn f() { }
9
9
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
10
10
11
11
error[E0518]: attribute should be applied to function or closure
12
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:10 :1
12
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:32 :1
13
13
|
14
14
LL | #[inline]
15
15
| ^^^^^^^^^
@@ -24,7 +24,7 @@ LL | | }
24
24
| |_- not a function or closure
25
25
26
26
error: attribute should be applied to an `extern crate` item
27
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:38 :1
27
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:60 :1
28
28
|
29
29
LL | #[no_link]
30
30
| ^^^^^^^^^^
@@ -39,7 +39,7 @@ LL | | }
39
39
| |_- not an `extern crate` item
40
40
41
41
error: attribute should be applied to a function or static
42
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:64 :1
42
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:86 :1
43
43
|
44
44
LL | #[export_name = "2200"]
45
45
| ^^^^^^^^^^^^^^^^^^^^^^^
@@ -53,84 +53,151 @@ LL | |
53
53
LL | | }
54
54
| |_- not a function or static
55
55
56
+ error: attribute should be applied to a function or static
57
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:23:1
58
+ |
59
+ LL | / #![deny(unused_attributes)]
60
+ LL | |
61
+ LL | |
62
+ LL | |
63
+ ... |
64
+ LL | | #![no_mangle]
65
+ | | ^^^^^^^^^^^^^
66
+ ... |
67
+ LL | |
68
+ LL | | fn main() {}
69
+ | |____________- not a function or static
70
+ |
71
+ note: the lint level is defined here
72
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:10:9
73
+ |
74
+ LL | #![deny(unused_attributes)]
75
+ | ^^^^^^^^^^^^^^^^^
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
+
78
+ error: attribute should be applied to an `extern crate` item
79
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:26:1
80
+ |
81
+ LL | / #![deny(unused_attributes)]
82
+ LL | |
83
+ LL | |
84
+ LL | |
85
+ ... |
86
+ LL | | #![no_link]
87
+ | | ^^^^^^^^^^^
88
+ ... |
89
+ LL | |
90
+ LL | | fn main() {}
91
+ | |____________- not an `extern crate` item
92
+
93
+ error: attribute should be applied to a function or static
94
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:28:1
95
+ |
96
+ LL | / #![deny(unused_attributes)]
97
+ LL | |
98
+ LL | |
99
+ LL | |
100
+ ... |
101
+ LL | | #![export_name = "2200"]
102
+ | | ^^^^^^^^^^^^^^^^^^^^^^^^
103
+ ... |
104
+ LL | |
105
+ LL | | fn main() {}
106
+ | |____________- not a function or static
107
+
108
+ error[E0518]: attribute should be applied to function or closure
109
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:30:1
110
+ |
111
+ LL | / #![deny(unused_attributes)]
112
+ LL | |
113
+ LL | |
114
+ LL | |
115
+ ... |
116
+ LL | | #![inline]
117
+ | | ^^^^^^^^^^
118
+ ... |
119
+ LL | |
120
+ LL | | fn main() {}
121
+ | |____________- not a function or closure
122
+
56
123
error[E0518]: attribute should be applied to function or closure
57
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:15 :17
124
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:37 :17
58
125
|
59
126
LL | mod inner { #![inline] }
60
127
| ------------^^^^^^^^^^-- not a function or closure
61
128
62
129
error[E0518]: attribute should be applied to function or closure
63
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:25 :5
130
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:47 :5
64
131
|
65
132
LL | #[inline] struct S;
66
133
| ^^^^^^^^^ --------- not a function or closure
67
134
68
135
error[E0518]: attribute should be applied to function or closure
69
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:29 :5
136
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:51 :5
70
137
|
71
138
LL | #[inline] type T = S;
72
139
| ^^^^^^^^^ ----------- not a function or closure
73
140
74
141
error[E0518]: attribute should be applied to function or closure
75
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:33 :5
142
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:55 :5
76
143
|
77
144
LL | #[inline] impl S { }
78
145
| ^^^^^^^^^ ---------- not a function or closure
79
146
80
147
error: attribute should be applied to an `extern crate` item
81
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:43 :17
148
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:65 :17
82
149
|
83
150
LL | mod inner { #![no_link] }
84
151
| ------------^^^^^^^^^^^-- not an `extern crate` item
85
152
86
153
error: attribute should be applied to an `extern crate` item
87
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:47 :5
154
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:69 :5
88
155
|
89
156
LL | #[no_link] fn f() { }
90
157
| ^^^^^^^^^^ ---------- not an `extern crate` item
91
158
92
159
error: attribute should be applied to an `extern crate` item
93
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:51 :5
160
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:73 :5
94
161
|
95
162
LL | #[no_link] struct S;
96
163
| ^^^^^^^^^^ --------- not an `extern crate` item
97
164
98
165
error: attribute should be applied to an `extern crate` item
99
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:55 :5
166
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:77 :5
100
167
|
101
168
LL | #[no_link]type T = S;
102
169
| ^^^^^^^^^^----------- not an `extern crate` item
103
170
104
171
error: attribute should be applied to an `extern crate` item
105
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:59 :5
172
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:81 :5
106
173
|
107
174
LL | #[no_link] impl S { }
108
175
| ^^^^^^^^^^ ---------- not an `extern crate` item
109
176
110
177
error: attribute should be applied to a function or static
111
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:69 :17
178
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:91 :17
112
179
|
113
180
LL | mod inner { #![export_name="2200"] }
114
181
| ------------^^^^^^^^^^^^^^^^^^^^^^-- not a function or static
115
182
116
183
error: attribute should be applied to a function or static
117
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:75 :5
184
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:97 :5
118
185
|
119
186
LL | #[export_name = "2200"] struct S;
120
187
| ^^^^^^^^^^^^^^^^^^^^^^^ --------- not a function or static
121
188
122
189
error: attribute should be applied to a function or static
123
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:79 :5
190
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:101 :5
124
191
|
125
192
LL | #[export_name = "2200"] type T = S;
126
193
| ^^^^^^^^^^^^^^^^^^^^^^^ ----------- not a function or static
127
194
128
195
error: attribute should be applied to a function or static
129
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:83 :5
196
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:105 :5
130
197
|
131
198
LL | #[export_name = "2200"] impl S { }
132
199
| ^^^^^^^^^^^^^^^^^^^^^^^ ---------- not a function or static
133
200
134
- error: aborting due to 17 previous errors
201
+ error: aborting due to 21 previous errors
135
202
136
203
For more information about this error, try `rustc --explain E0518`.
0 commit comments