fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
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:17: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[E0658]: custom attributes cannot be applied to modules 20 --> $DIR/proc-macro-gates.rs:13:1 21 | 22LL | #[empty_attr] 23 | ^^^^^^^^^^^^^ 24 | 25 = note: for more information, see https://github.com/rust-lang/rust/issues/54727 26 = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable 27 28error[E0658]: custom attributes cannot be applied to modules 29 --> $DIR/proc-macro-gates.rs:17:5 30 | 31LL | #![empty_attr] 32 | ^^^^^^^^^^^^^^ 33 | 34 = note: for more information, see https://github.com/rust-lang/rust/issues/54727 35 = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable 36 37error: custom attribute invocations must be of the form `#[foo]` or `#[foo(..)]`, the macro name must only be followed by a delimiter token 38 --> $DIR/proc-macro-gates.rs:21:1 39 | 40LL | #[empty_attr = "y"] 41 | ^^^^^^^^^^^^^^^^^^^ 42 43error[E0658]: custom attributes cannot be applied to statements 44 --> $DIR/proc-macro-gates.rs:30: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 statements 53 --> $DIR/proc-macro-gates.rs:34:5 54 | 55LL | #[empty_attr] 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 statements 62 --> $DIR/proc-macro-gates.rs:38:5 63 | 64LL | #[empty_attr] 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:42:14 72 | 73LL | let _x = #[identity_attr] 2; 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]: custom attributes cannot be applied to expressions 80 --> $DIR/proc-macro-gates.rs:45:15 81 | 82LL | let _x = [#[identity_attr] 2]; 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]: custom attributes cannot be applied to expressions 89 --> $DIR/proc-macro-gates.rs:48:14 90 | 91LL | let _x = #[identity_attr] println!(); 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 types 98 --> $DIR/proc-macro-gates.rs:53:13 99 | 100LL | let _x: identity!(u32) = 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 patterns 107 --> $DIR/proc-macro-gates.rs:54:12 108 | 109LL | if let identity!(Some(_x)) = Some(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 statements 116 --> $DIR/proc-macro-gates.rs:57:5 117 | 118LL | empty!(struct S;); 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[E0658]: procedural macros cannot be expanded to statements 125 --> $DIR/proc-macro-gates.rs:58:5 126 | 127LL | empty!(let _x = 3;); 128 | ^^^^^^^^^^^^^^^^^^^^ 129 | 130 = note: for more information, see https://github.com/rust-lang/rust/issues/54727 131 = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable 132 133error[E0658]: procedural macros cannot be expanded to expressions 134 --> $DIR/proc-macro-gates.rs:60:14 135 | 136LL | let _x = identity!(3); 137 | ^^^^^^^^^^^^ 138 | 139 = note: for more information, see https://github.com/rust-lang/rust/issues/54727 140 = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable 141 142error[E0658]: procedural macros cannot be expanded to expressions 143 --> $DIR/proc-macro-gates.rs:61:15 144 | 145LL | let _x = [empty!(3)]; 146 | ^^^^^^^^^ 147 | 148 = note: for more information, see https://github.com/rust-lang/rust/issues/54727 149 = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable 150 151error: aborting due to 17 previous errors 152 153For more information about this error, try `rustc --explain E0658`.