]>
Commit | Line | Data |
---|---|---|
cdc7bbd5 XL |
1 | error[E0658]: the `#[rustc_main]` attribute is used internally to specify test entry point function |
2 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:14:1 | |
3 | | | |
4 | LL | #![rustc_main] | |
5 | | ^^^^^^^^^^^^^^ | |
6 | | | |
7 | = help: add `#![feature(rustc_attrs)]` to the crate attributes to enable | |
8 | ||
1b1a35ee | 9 | error: attribute must be of the form `#[inline]` or `#[inline(always|never)]` |
cdc7bbd5 | 10 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:40:5 |
1b1a35ee XL |
11 | | |
12 | LL | #[inline = "2100"] fn f() { } | |
13 | | ^^^^^^^^^^^^^^^^^^ | |
14 | | | |
15 | = note: `#[deny(ill_formed_attribute_input)]` on by default | |
16 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | |
17 | = note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571> | |
18 | ||
29967ef6 | 19 | error: `start` attribute can only be used on functions |
cdc7bbd5 | 20 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:109:1 |
29967ef6 XL |
21 | | |
22 | LL | #[start] | |
23 | | ^^^^^^^^ | |
24 | ||
25 | error: `start` attribute can only be used on functions | |
cdc7bbd5 | 26 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:112:17 |
29967ef6 XL |
27 | | |
28 | LL | mod inner { #![start] } | |
29 | | ^^^^^^^^^ | |
30 | ||
31 | error: `start` attribute can only be used on functions | |
cdc7bbd5 | 32 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:117:5 |
29967ef6 XL |
33 | | |
34 | LL | #[start] struct S; | |
35 | | ^^^^^^^^ | |
36 | ||
37 | error: `start` attribute can only be used on functions | |
cdc7bbd5 | 38 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:120:5 |
29967ef6 XL |
39 | | |
40 | LL | #[start] type T = S; | |
41 | | ^^^^^^^^ | |
42 | ||
43 | error: `start` attribute can only be used on functions | |
cdc7bbd5 | 44 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:123:5 |
29967ef6 XL |
45 | | |
46 | LL | #[start] impl S { } | |
47 | | ^^^^^^^^ | |
48 | ||
1b1a35ee | 49 | error[E0518]: attribute should be applied to function or closure |
cdc7bbd5 | 50 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:31:1 |
1b1a35ee XL |
51 | | |
52 | LL | #[inline] | |
53 | | ^^^^^^^^^ | |
54 | LL | | |
55 | LL | / mod inline { | |
56 | LL | | | |
57 | LL | | | |
58 | LL | | mod inner { #![inline] } | |
59 | ... | | |
60 | LL | | | |
61 | LL | | } | |
62 | | |_- not a function or closure | |
63 | ||
64 | error: attribute should be applied to an `extern crate` item | |
cdc7bbd5 | 65 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:59:1 |
1b1a35ee XL |
66 | | |
67 | LL | #[no_link] | |
68 | | ^^^^^^^^^^ | |
69 | LL | | |
70 | LL | / mod no_link { | |
71 | LL | | | |
72 | LL | | | |
73 | LL | | mod inner { #![no_link] } | |
74 | ... | | |
75 | LL | | | |
76 | LL | | } | |
77 | | |_- not an `extern crate` item | |
78 | ||
79 | error: attribute should be applied to a function or static | |
cdc7bbd5 | 80 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:85:1 |
1b1a35ee XL |
81 | | |
82 | LL | #[export_name = "2200"] | |
83 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
84 | LL | | |
85 | LL | / mod export_name { | |
86 | LL | | | |
87 | LL | | | |
88 | LL | | mod inner { #![export_name="2200"] } | |
89 | ... | | |
90 | LL | | | |
91 | LL | | } | |
92 | | |_- not a function or static | |
93 | ||
29967ef6 | 94 | error: attribute should be applied to an `extern crate` item |
cdc7bbd5 | 95 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:25:1 |
29967ef6 XL |
96 | | |
97 | LL | #![no_link] | |
98 | | ^^^^^^^^^^^ | |
99 | ||
100 | error: attribute should be applied to a function or static | |
cdc7bbd5 | 101 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:27:1 |
29967ef6 XL |
102 | | |
103 | LL | #![export_name = "2200"] | |
104 | | ^^^^^^^^^^^^^^^^^^^^^^^^ | |
105 | ||
106 | error[E0518]: attribute should be applied to function or closure | |
cdc7bbd5 | 107 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:29:1 |
29967ef6 XL |
108 | | |
109 | LL | #![inline] | |
110 | | ^^^^^^^^^^ | |
111 | ||
112 | error: `macro_export` attribute cannot be used at crate level | |
cdc7bbd5 | 113 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:12:1 |
29967ef6 XL |
114 | | |
115 | LL | #![macro_export] | |
116 | | ^^^^^^^^^^^^^^^^ | |
117 | ||
cdc7bbd5 XL |
118 | error: `rustc_main` attribute cannot be used at crate level |
119 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:14:1 | |
29967ef6 | 120 | | |
cdc7bbd5 XL |
121 | LL | #![rustc_main] |
122 | | ^^^^^^^^^^^^^^ | |
29967ef6 XL |
123 | |
124 | error: `start` attribute cannot be used at crate level | |
cdc7bbd5 | 125 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:16:1 |
29967ef6 XL |
126 | | |
127 | LL | #![start] | |
128 | | ^^^^^^^^^ | |
129 | ||
130 | error: `repr` attribute cannot be used at crate level | |
cdc7bbd5 | 131 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:18:1 |
29967ef6 XL |
132 | | |
133 | LL | #![repr()] | |
134 | | ^^^^^^^^^^ | |
135 | ||
136 | error: `path` attribute cannot be used at crate level | |
cdc7bbd5 | 137 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:20:1 |
29967ef6 XL |
138 | | |
139 | LL | #![path = "3800"] | |
140 | | ^^^^^^^^^^^^^^^^^ | |
141 | ||
142 | error: `automatically_derived` attribute cannot be used at crate level | |
cdc7bbd5 | 143 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:22:1 |
29967ef6 XL |
144 | | |
145 | LL | #![automatically_derived] | |
146 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
147 | ||
1b1a35ee | 148 | error[E0518]: attribute should be applied to function or closure |
cdc7bbd5 | 149 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:36:17 |
1b1a35ee XL |
150 | | |
151 | LL | mod inner { #![inline] } | |
152 | | ------------^^^^^^^^^^-- not a function or closure | |
153 | ||
154 | error[E0518]: attribute should be applied to function or closure | |
cdc7bbd5 | 155 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:46:5 |
1b1a35ee XL |
156 | | |
157 | LL | #[inline] struct S; | |
158 | | ^^^^^^^^^ --------- not a function or closure | |
159 | ||
160 | error[E0518]: attribute should be applied to function or closure | |
cdc7bbd5 | 161 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:50:5 |
1b1a35ee XL |
162 | | |
163 | LL | #[inline] type T = S; | |
164 | | ^^^^^^^^^ ----------- not a function or closure | |
165 | ||
166 | error[E0518]: attribute should be applied to function or closure | |
cdc7bbd5 | 167 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:54:5 |
1b1a35ee XL |
168 | | |
169 | LL | #[inline] impl S { } | |
170 | | ^^^^^^^^^ ---------- not a function or closure | |
171 | ||
172 | error: attribute should be applied to an `extern crate` item | |
cdc7bbd5 | 173 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:64:17 |
1b1a35ee XL |
174 | | |
175 | LL | mod inner { #![no_link] } | |
176 | | ------------^^^^^^^^^^^-- not an `extern crate` item | |
177 | ||
178 | error: attribute should be applied to an `extern crate` item | |
cdc7bbd5 | 179 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:68:5 |
1b1a35ee XL |
180 | | |
181 | LL | #[no_link] fn f() { } | |
182 | | ^^^^^^^^^^ ---------- not an `extern crate` item | |
183 | ||
184 | error: attribute should be applied to an `extern crate` item | |
cdc7bbd5 | 185 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:72:5 |
1b1a35ee XL |
186 | | |
187 | LL | #[no_link] struct S; | |
188 | | ^^^^^^^^^^ --------- not an `extern crate` item | |
189 | ||
190 | error: attribute should be applied to an `extern crate` item | |
cdc7bbd5 | 191 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:76:5 |
1b1a35ee XL |
192 | | |
193 | LL | #[no_link]type T = S; | |
194 | | ^^^^^^^^^^----------- not an `extern crate` item | |
195 | ||
196 | error: attribute should be applied to an `extern crate` item | |
cdc7bbd5 | 197 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:80:5 |
1b1a35ee XL |
198 | | |
199 | LL | #[no_link] impl S { } | |
200 | | ^^^^^^^^^^ ---------- not an `extern crate` item | |
201 | ||
202 | error: attribute should be applied to a function or static | |
cdc7bbd5 | 203 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:90:17 |
1b1a35ee XL |
204 | | |
205 | LL | mod inner { #![export_name="2200"] } | |
206 | | ------------^^^^^^^^^^^^^^^^^^^^^^-- not a function or static | |
207 | ||
208 | error: attribute should be applied to a function or static | |
cdc7bbd5 | 209 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:96:5 |
1b1a35ee XL |
210 | | |
211 | LL | #[export_name = "2200"] struct S; | |
212 | | ^^^^^^^^^^^^^^^^^^^^^^^ --------- not a function or static | |
213 | ||
214 | error: attribute should be applied to a function or static | |
cdc7bbd5 | 215 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:100:5 |
1b1a35ee XL |
216 | | |
217 | LL | #[export_name = "2200"] type T = S; | |
218 | | ^^^^^^^^^^^^^^^^^^^^^^^ ----------- not a function or static | |
219 | ||
220 | error: attribute should be applied to a function or static | |
cdc7bbd5 | 221 | --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:104:5 |
1b1a35ee XL |
222 | | |
223 | LL | #[export_name = "2200"] impl S { } | |
224 | | ^^^^^^^^^^^^^^^^^^^^^^^ ---------- not a function or static | |
225 | ||
cdc7bbd5 | 226 | error: aborting due to 32 previous errors |
1b1a35ee | 227 | |
cdc7bbd5 XL |
228 | Some errors have detailed explanations: E0518, E0658. |
229 | For more information about an error, try `rustc --explain E0518`. |