fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
4.6 KiB126 linesraw
1error[E0658]: non-builtin inner attributes are unstable
2  --> $DIR/proc-macro-gates.rs:10:5
3   |
4LL |     #![empty_attr]
5   |     ^^^^^^^^^^^^^^
6   |
7   = note: for more information, see https://github.com/rust-lang/rust/issues/54726
8   = help: add `#![feature(custom_inner_attributes)]` to the crate attributes to enable
9
10error[E0658]: non-builtin inner attributes are unstable
11  --> $DIR/proc-macro-gates.rs:14:5
12   |
13LL |     #![empty_attr]
14   |     ^^^^^^^^^^^^^^
15   |
16   = note: for more information, see https://github.com/rust-lang/rust/issues/54726
17   = help: add `#![feature(custom_inner_attributes)]` to the crate attributes to enable
18
19error: key-value macro attributes are not supported
20  --> $DIR/proc-macro-gates.rs:17:1
21   |
22LL | #[empty_attr = "y"]
23   | ^^^^^^^^^^^^^^^^^^^
24
25error[E0658]: custom attributes cannot be applied to statements
26  --> $DIR/proc-macro-gates.rs:26:5
27   |
28LL |     #[empty_attr]
29   |     ^^^^^^^^^^^^^
30   |
31   = note: for more information, see https://github.com/rust-lang/rust/issues/54727
32   = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
33
34error[E0658]: custom attributes cannot be applied to statements
35  --> $DIR/proc-macro-gates.rs:30:5
36   |
37LL |     #[empty_attr]
38   |     ^^^^^^^^^^^^^
39   |
40   = note: for more information, see https://github.com/rust-lang/rust/issues/54727
41   = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
42
43error[E0658]: custom attributes cannot be applied to statements
44  --> $DIR/proc-macro-gates.rs:34:5
45   |
46LL |     #[empty_attr]
47   |     ^^^^^^^^^^^^^
48   |
49   = note: for more information, see https://github.com/rust-lang/rust/issues/54727
50   = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
51
52error[E0658]: custom attributes cannot be applied to expressions
53  --> $DIR/proc-macro-gates.rs:38:14
54   |
55LL |     let _x = #[identity_attr] 2;
56   |              ^^^^^^^^^^^^^^^^
57   |
58   = note: for more information, see https://github.com/rust-lang/rust/issues/54727
59   = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
60
61error[E0658]: custom attributes cannot be applied to expressions
62  --> $DIR/proc-macro-gates.rs:41:15
63   |
64LL |     let _x = [#[identity_attr] 2];
65   |               ^^^^^^^^^^^^^^^^
66   |
67   = note: for more information, see https://github.com/rust-lang/rust/issues/54727
68   = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
69
70error[E0658]: custom attributes cannot be applied to expressions
71  --> $DIR/proc-macro-gates.rs:44:14
72   |
73LL |     let _x = #[identity_attr] println!();
74   |              ^^^^^^^^^^^^^^^^
75   |
76   = note: for more information, see https://github.com/rust-lang/rust/issues/54727
77   = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
78
79error[E0658]: procedural macros cannot be expanded to patterns
80  --> $DIR/proc-macro-gates.rs:49:12
81   |
82LL |     if let identity!(Some(_x)) = Some(3) {}
83   |            ^^^^^^^^^^^^^^^^^^^
84   |
85   = note: for more information, see https://github.com/rust-lang/rust/issues/54727
86   = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
87
88error[E0658]: procedural macros cannot be expanded to statements
89  --> $DIR/proc-macro-gates.rs:52:5
90   |
91LL |     empty!(struct S;);
92   |     ^^^^^^^^^^^^^^^^^^
93   |
94   = note: for more information, see https://github.com/rust-lang/rust/issues/54727
95   = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
96
97error[E0658]: procedural macros cannot be expanded to statements
98  --> $DIR/proc-macro-gates.rs:53:5
99   |
100LL |     empty!(let _x = 3;);
101   |     ^^^^^^^^^^^^^^^^^^^^
102   |
103   = note: for more information, see https://github.com/rust-lang/rust/issues/54727
104   = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
105
106error[E0658]: procedural macros cannot be expanded to expressions
107  --> $DIR/proc-macro-gates.rs:55:14
108   |
109LL |     let _x = identity!(3);
110   |              ^^^^^^^^^^^^
111   |
112   = note: for more information, see https://github.com/rust-lang/rust/issues/54727
113   = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
114
115error[E0658]: procedural macros cannot be expanded to expressions
116  --> $DIR/proc-macro-gates.rs:56:15
117   |
118LL |     let _x = [empty!(3)];
119   |               ^^^^^^^^^
120   |
121   = note: for more information, see https://github.com/rust-lang/rust/issues/54727
122   = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
123
124error: aborting due to 14 previous errors
125
126For more information about this error, try `rustc --explain E0658`.