2021-04-08 08:37:38 -05:00
|
|
|
error[E0658]: the `#[rustc_main]` attribute is used internally to specify test entry point function
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:14:1
|
|
|
|
|
|
|
|
|
LL | #![rustc_main]
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: add `#![feature(rustc_attrs)]` to the crate attributes to enable
|
|
|
|
|
2020-06-13 23:47:42 -05:00
|
|
|
error: attribute must be of the form `#[inline]` or `#[inline(always|never)]`
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:40:5
|
2020-06-13 23:47:42 -05:00
|
|
|
|
|
|
|
|
LL | #[inline = "2100"] fn f() { }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
|
2022-09-18 10:55:36 -05:00
|
|
|
= note: `#[deny(ill_formed_attribute_input)]` on by default
|
2020-06-13 23:47:42 -05:00
|
|
|
|
2020-10-03 13:45:39 -05:00
|
|
|
error: `start` attribute can only be used on functions
|
2021-08-10 13:41:57 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:119:1
|
2020-10-03 13:45:39 -05:00
|
|
|
|
|
|
|
|
LL | #[start]
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: `start` attribute can only be used on functions
|
2021-08-10 13:41:57 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:122:17
|
2020-10-03 13:45:39 -05:00
|
|
|
|
|
|
|
|
LL | mod inner { #![start] }
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: `start` attribute can only be used on functions
|
2021-08-10 13:41:57 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:127:5
|
2020-10-03 13:45:39 -05:00
|
|
|
|
|
|
|
|
LL | #[start] struct S;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: `start` attribute can only be used on functions
|
2021-08-10 13:41:57 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:130:5
|
2020-10-03 13:45:39 -05:00
|
|
|
|
|
|
|
|
LL | #[start] type T = S;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: `start` attribute can only be used on functions
|
2021-08-10 13:41:57 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:133:5
|
2020-10-03 13:45:39 -05:00
|
|
|
|
|
|
|
|
LL | #[start] impl S { }
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
2020-06-13 23:47:42 -05:00
|
|
|
error[E0518]: attribute should be applied to function or closure
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:31:1
|
2020-06-13 23:47:42 -05:00
|
|
|
|
|
|
|
|
LL | #[inline]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
LL |
|
|
|
|
LL | / mod inline {
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | mod inner { #![inline] }
|
|
|
|
... |
|
|
|
|
LL | |
|
|
|
|
LL | | }
|
|
|
|
| |_- not a function or closure
|
|
|
|
|
|
|
|
error: attribute should be applied to an `extern crate` item
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:59:1
|
2020-06-13 23:47:42 -05:00
|
|
|
|
|
|
|
|
LL | #[no_link]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
LL |
|
|
|
|
LL | / mod no_link {
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | mod inner { #![no_link] }
|
|
|
|
... |
|
|
|
|
LL | |
|
|
|
|
LL | | }
|
|
|
|
| |_- not an `extern crate` item
|
|
|
|
|
2021-08-10 13:41:57 -05:00
|
|
|
error: attribute should be applied to a free function, impl method or static
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:85:1
|
2020-06-13 23:47:42 -05:00
|
|
|
|
|
|
|
|
LL | #[export_name = "2200"]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
LL |
|
|
|
|
LL | / mod export_name {
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | mod inner { #![export_name="2200"] }
|
|
|
|
... |
|
2021-08-10 13:41:57 -05:00
|
|
|
LL | | }
|
2020-06-13 23:47:42 -05:00
|
|
|
LL | | }
|
2021-08-10 13:41:57 -05:00
|
|
|
| |_- not a free function, impl method or static
|
2020-06-13 23:47:42 -05:00
|
|
|
|
2021-09-05 19:16:28 -05:00
|
|
|
error[E0517]: attribute should be applied to a struct, enum, or union
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:137:8
|
|
|
|
|
|
|
|
|
LL | #[repr(C)]
|
|
|
|
| ^
|
|
|
|
LL |
|
|
|
|
LL | / mod repr {
|
|
|
|
LL | |
|
|
|
|
LL | | mod inner { #![repr(C)] }
|
|
|
|
LL | |
|
|
|
|
... |
|
|
|
|
LL | |
|
|
|
|
LL | | }
|
|
|
|
| |_- not a struct, enum, or union
|
|
|
|
|
2020-09-29 14:29:42 -05:00
|
|
|
error: attribute should be applied to an `extern crate` item
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:25:1
|
2020-09-29 14:29:42 -05:00
|
|
|
|
|
2020-10-03 13:45:39 -05:00
|
|
|
LL | #![no_link]
|
2022-11-04 11:04:47 -05:00
|
|
|
| ^^^^^^^^^^^ not an `extern crate` item
|
2020-09-29 14:29:42 -05:00
|
|
|
|
2021-08-10 13:41:57 -05:00
|
|
|
error: attribute should be applied to a free function, impl method or static
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:27:1
|
2020-09-29 14:29:42 -05:00
|
|
|
|
|
2020-10-03 13:45:39 -05:00
|
|
|
LL | #![export_name = "2200"]
|
2022-11-04 11:04:47 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ not a free function, impl method or static
|
2020-09-29 14:29:42 -05:00
|
|
|
|
|
|
|
error[E0518]: attribute should be applied to function or closure
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:29:1
|
2020-09-29 14:29:42 -05:00
|
|
|
|
|
2020-10-03 13:45:39 -05:00
|
|
|
LL | #![inline]
|
2022-11-04 11:04:47 -05:00
|
|
|
| ^^^^^^^^^^ not a function or closure
|
2020-10-03 13:45:39 -05:00
|
|
|
|
|
|
|
error: `macro_export` attribute cannot be used at crate level
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:12:1
|
2020-10-03 13:45:39 -05:00
|
|
|
|
|
|
|
|
LL | #![macro_export]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2021-10-09 07:13:15 -05:00
|
|
|
|
|
|
|
|
help: perhaps you meant to use an outer attribute
|
|
|
|
|
|
|
|
|
LL | #[macro_export]
|
|
|
|
|
|
2020-10-03 13:45:39 -05:00
|
|
|
|
2021-04-08 08:37:38 -05:00
|
|
|
error: `rustc_main` attribute cannot be used at crate level
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:14:1
|
2020-10-03 13:45:39 -05:00
|
|
|
|
|
2021-04-08 08:37:38 -05:00
|
|
|
LL | #![rustc_main]
|
|
|
|
| ^^^^^^^^^^^^^^
|
2021-10-09 07:13:15 -05:00
|
|
|
|
|
|
|
|
help: perhaps you meant to use an outer attribute
|
|
|
|
|
|
|
|
|
LL | #[rustc_main]
|
|
|
|
| ~~~~~~~~~~~~~
|
2020-10-03 13:45:39 -05:00
|
|
|
|
|
|
|
error: `start` attribute cannot be used at crate level
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:16:1
|
2020-10-03 13:45:39 -05:00
|
|
|
|
|
|
|
|
LL | #![start]
|
|
|
|
| ^^^^^^^^^
|
2021-10-09 07:13:15 -05:00
|
|
|
|
|
|
|
|
help: perhaps you meant to use an outer attribute
|
|
|
|
|
|
|
|
|
LL | #[start]
|
|
|
|
|
|
2020-10-03 13:45:39 -05:00
|
|
|
|
|
|
|
error: `repr` attribute cannot be used at crate level
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:18:1
|
2020-10-03 13:45:39 -05:00
|
|
|
|
|
|
|
|
LL | #![repr()]
|
|
|
|
| ^^^^^^^^^^
|
2021-10-09 07:13:15 -05:00
|
|
|
|
|
|
|
|
help: perhaps you meant to use an outer attribute
|
|
|
|
|
|
|
|
|
LL | #[repr()]
|
|
|
|
|
|
2020-10-03 13:45:39 -05:00
|
|
|
|
|
|
|
error: `path` attribute cannot be used at crate level
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:20:1
|
2020-10-03 13:45:39 -05:00
|
|
|
|
|
|
|
|
LL | #![path = "3800"]
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2021-10-09 07:13:15 -05:00
|
|
|
|
|
|
|
|
help: perhaps you meant to use an outer attribute
|
|
|
|
|
|
|
|
|
LL | #[path = "3800"]
|
|
|
|
|
|
2020-10-03 13:45:39 -05:00
|
|
|
|
|
|
|
error: `automatically_derived` attribute cannot be used at crate level
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:22:1
|
2020-10-03 13:45:39 -05:00
|
|
|
|
|
|
|
|
LL | #![automatically_derived]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-10-09 07:13:15 -05:00
|
|
|
|
|
|
|
|
help: perhaps you meant to use an outer attribute
|
|
|
|
|
|
|
|
|
LL | #[automatically_derived]
|
|
|
|
|
|
2020-09-29 14:29:42 -05:00
|
|
|
|
2020-06-13 23:47:42 -05:00
|
|
|
error[E0518]: attribute should be applied to function or closure
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:36:17
|
2020-06-13 23:47:42 -05:00
|
|
|
|
|
|
|
|
LL | mod inner { #![inline] }
|
|
|
|
| ------------^^^^^^^^^^-- not a function or closure
|
|
|
|
|
|
|
|
error[E0518]: attribute should be applied to function or closure
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:46:5
|
2020-06-13 23:47:42 -05:00
|
|
|
|
|
|
|
|
LL | #[inline] struct S;
|
|
|
|
| ^^^^^^^^^ --------- not a function or closure
|
|
|
|
|
|
|
|
error[E0518]: attribute should be applied to function or closure
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:50:5
|
2020-06-13 23:47:42 -05:00
|
|
|
|
|
|
|
|
LL | #[inline] type T = S;
|
|
|
|
| ^^^^^^^^^ ----------- not a function or closure
|
|
|
|
|
|
|
|
error[E0518]: attribute should be applied to function or closure
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:54:5
|
2020-06-13 23:47:42 -05:00
|
|
|
|
|
|
|
|
LL | #[inline] impl S { }
|
|
|
|
| ^^^^^^^^^ ---------- not a function or closure
|
|
|
|
|
|
|
|
error: attribute should be applied to an `extern crate` item
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:64:17
|
2020-06-13 23:47:42 -05:00
|
|
|
|
|
|
|
|
LL | mod inner { #![no_link] }
|
|
|
|
| ------------^^^^^^^^^^^-- not an `extern crate` item
|
|
|
|
|
|
|
|
error: attribute should be applied to an `extern crate` item
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:68:5
|
2020-06-13 23:47:42 -05:00
|
|
|
|
|
|
|
|
LL | #[no_link] fn f() { }
|
|
|
|
| ^^^^^^^^^^ ---------- not an `extern crate` item
|
|
|
|
|
|
|
|
error: attribute should be applied to an `extern crate` item
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:72:5
|
2020-06-13 23:47:42 -05:00
|
|
|
|
|
|
|
|
LL | #[no_link] struct S;
|
|
|
|
| ^^^^^^^^^^ --------- not an `extern crate` item
|
|
|
|
|
|
|
|
error: attribute should be applied to an `extern crate` item
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:76:5
|
2020-06-13 23:47:42 -05:00
|
|
|
|
|
|
|
|
LL | #[no_link]type T = S;
|
|
|
|
| ^^^^^^^^^^----------- not an `extern crate` item
|
|
|
|
|
|
|
|
error: attribute should be applied to an `extern crate` item
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:80:5
|
2020-06-13 23:47:42 -05:00
|
|
|
|
|
|
|
|
LL | #[no_link] impl S { }
|
|
|
|
| ^^^^^^^^^^ ---------- not an `extern crate` item
|
|
|
|
|
2021-08-10 13:41:57 -05:00
|
|
|
error: attribute should be applied to a free function, impl method or static
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:90:17
|
2020-06-13 23:47:42 -05:00
|
|
|
|
|
|
|
|
LL | mod inner { #![export_name="2200"] }
|
2021-08-10 13:41:57 -05:00
|
|
|
| ------------^^^^^^^^^^^^^^^^^^^^^^-- not a free function, impl method or static
|
2020-06-13 23:47:42 -05:00
|
|
|
|
2021-08-10 13:41:57 -05:00
|
|
|
error: attribute should be applied to a free function, impl method or static
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:96:5
|
2020-06-13 23:47:42 -05:00
|
|
|
|
|
|
|
|
LL | #[export_name = "2200"] struct S;
|
2021-08-10 13:41:57 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ --------- not a free function, impl method or static
|
2020-06-13 23:47:42 -05:00
|
|
|
|
2021-08-10 13:41:57 -05:00
|
|
|
error: attribute should be applied to a free function, impl method or static
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:100:5
|
2020-06-13 23:47:42 -05:00
|
|
|
|
|
|
|
|
LL | #[export_name = "2200"] type T = S;
|
2021-08-10 13:41:57 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ ----------- not a free function, impl method or static
|
2020-06-13 23:47:42 -05:00
|
|
|
|
2021-08-10 13:41:57 -05:00
|
|
|
error: attribute should be applied to a free function, impl method or static
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:104:5
|
2020-06-13 23:47:42 -05:00
|
|
|
|
|
|
|
|
LL | #[export_name = "2200"] impl S { }
|
2021-08-10 13:41:57 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ ---------- not a free function, impl method or static
|
|
|
|
|
|
|
|
error: attribute should be applied to a free function, impl method or static
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:109:9
|
|
|
|
|
|
|
|
|
LL | #[export_name = "2200"] fn foo();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ --------- not a free function, impl method or static
|
|
|
|
|
|
|
|
error: attribute should be applied to a free function, impl method or static
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:113:9
|
|
|
|
|
|
|
|
|
LL | #[export_name = "2200"] fn bar() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ ----------- not a free function, impl method or static
|
2020-06-13 23:47:42 -05:00
|
|
|
|
2021-09-05 19:16:28 -05:00
|
|
|
error[E0517]: attribute should be applied to a struct, enum, or union
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:141:25
|
|
|
|
|
|
|
|
|
LL | mod inner { #![repr(C)] }
|
|
|
|
| --------------------^---- not a struct, enum, or union
|
|
|
|
|
|
|
|
error[E0517]: attribute should be applied to a struct, enum, or union
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:145:12
|
|
|
|
|
|
|
|
|
LL | #[repr(C)] fn f() { }
|
|
|
|
| ^ ---------- not a struct, enum, or union
|
|
|
|
|
|
|
|
error[E0517]: attribute should be applied to a struct, enum, or union
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:151:12
|
|
|
|
|
|
|
|
|
LL | #[repr(C)] type T = S;
|
|
|
|
| ^ ----------- not a struct, enum, or union
|
|
|
|
|
|
|
|
error[E0517]: attribute should be applied to a struct, enum, or union
|
|
|
|
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:155:12
|
|
|
|
|
|
|
|
|
LL | #[repr(C)] impl S { }
|
|
|
|
| ^ ---------- not a struct, enum, or union
|
|
|
|
|
|
|
|
error: aborting due to 39 previous errors
|
2020-06-13 23:47:42 -05:00
|
|
|
|
2021-09-05 19:16:28 -05:00
|
|
|
Some errors have detailed explanations: E0517, E0518, E0658.
|
|
|
|
For more information about an error, try `rustc --explain E0517`.
|