|
| 1 | +warning: `#[export_name]` attribute cannot be used on macro calls |
| 2 | + --> $DIR/attr-on-mac-call.rs:6:5 |
| 3 | + | |
| 4 | +LL | #[export_name = "x"] |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 6 | + | |
| 7 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 8 | + = help: `#[export_name]` can be applied to functions and statics |
| 9 | +note: the lint level is defined here |
| 10 | + --> $DIR/attr-on-mac-call.rs:3:9 |
| 11 | + | |
| 12 | +LL | #![warn(unused_attributes)] |
| 13 | + | ^^^^^^^^^^^^^^^^^ |
| 14 | + |
| 15 | +warning: `#[naked]` attribute cannot be used on macro calls |
| 16 | + --> $DIR/attr-on-mac-call.rs:9:5 |
| 17 | + | |
| 18 | +LL | #[unsafe(naked)] |
| 19 | + | ^^^^^^^^^^^^^^^^ |
| 20 | + | |
| 21 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 22 | + = help: `#[naked]` can only be applied to functions |
| 23 | + |
| 24 | +warning: `#[track_caller]` attribute cannot be used on macro calls |
| 25 | + --> $DIR/attr-on-mac-call.rs:12:5 |
| 26 | + | |
| 27 | +LL | #[track_caller] |
| 28 | + | ^^^^^^^^^^^^^^^ |
| 29 | + | |
| 30 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 31 | + = help: `#[track_caller]` can only be applied to functions |
| 32 | + |
| 33 | +warning: `#[used]` attribute cannot be used on macro calls |
| 34 | + --> $DIR/attr-on-mac-call.rs:15:5 |
| 35 | + | |
| 36 | +LL | #[used] |
| 37 | + | ^^^^^^^ |
| 38 | + | |
| 39 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 40 | + = help: `#[used]` can only be applied to statics |
| 41 | + |
| 42 | +warning: `#[target_feature]` attribute cannot be used on macro calls |
| 43 | + --> $DIR/attr-on-mac-call.rs:18:5 |
| 44 | + | |
| 45 | +LL | #[target_feature(enable = "x")] |
| 46 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 47 | + | |
| 48 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 49 | + = help: `#[target_feature]` can only be applied to functions |
| 50 | + |
| 51 | +warning: `#[deprecated]` attribute cannot be used on macro calls |
| 52 | + --> $DIR/attr-on-mac-call.rs:21:5 |
| 53 | + | |
| 54 | +LL | #[deprecated] |
| 55 | + | ^^^^^^^^^^^^^ |
| 56 | + | |
| 57 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 58 | + = help: `#[deprecated]` can be applied to functions, data types, modules, unions, constants, statics, macro defs, type aliases, use statements, foreign statics, struct fields, traits, associated types, associated consts, enum variants, inherent impl blocks, and crates |
| 59 | + |
| 60 | +warning: `#[inline]` attribute cannot be used on macro calls |
| 61 | + --> $DIR/attr-on-mac-call.rs:24:5 |
| 62 | + | |
| 63 | +LL | #[inline] |
| 64 | + | ^^^^^^^^^ |
| 65 | + | |
| 66 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 67 | + = help: `#[inline]` can only be applied to functions |
| 68 | + |
| 69 | +warning: `#[link_name]` attribute cannot be used on macro calls |
| 70 | + --> $DIR/attr-on-mac-call.rs:27:5 |
| 71 | + | |
| 72 | +LL | #[link_name = "x"] |
| 73 | + | ^^^^^^^^^^^^^^^^^^ |
| 74 | + | |
| 75 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 76 | + = help: `#[link_name]` can be applied to foreign functions and foreign statics |
| 77 | + |
| 78 | +warning: `#[link_section]` attribute cannot be used on macro calls |
| 79 | + --> $DIR/attr-on-mac-call.rs:30:5 |
| 80 | + | |
| 81 | +LL | #[link_section = "x"] |
| 82 | + | ^^^^^^^^^^^^^^^^^^^^^ |
| 83 | + | |
| 84 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 85 | + = help: `#[link_section]` can be applied to statics and functions |
| 86 | + |
| 87 | +warning: `#[link_ordinal]` attribute cannot be used on macro calls |
| 88 | + --> $DIR/attr-on-mac-call.rs:33:5 |
| 89 | + | |
| 90 | +LL | #[link_ordinal(42)] |
| 91 | + | ^^^^^^^^^^^^^^^^^^^ |
| 92 | + | |
| 93 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 94 | + = help: `#[link_ordinal]` can be applied to foreign functions and foreign statics |
| 95 | + |
| 96 | +warning: `#[non_exhaustive]` attribute cannot be used on macro calls |
| 97 | + --> $DIR/attr-on-mac-call.rs:36:5 |
| 98 | + | |
| 99 | +LL | #[non_exhaustive] |
| 100 | + | ^^^^^^^^^^^^^^^^^ |
| 101 | + | |
| 102 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 103 | + = help: `#[non_exhaustive]` can be applied to data types and enum variants |
| 104 | + |
| 105 | +warning: `#[proc_macro]` attribute cannot be used on macro calls |
| 106 | + --> $DIR/attr-on-mac-call.rs:39:5 |
| 107 | + | |
| 108 | +LL | #[proc_macro] |
| 109 | + | ^^^^^^^^^^^^^ |
| 110 | + | |
| 111 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 112 | + = help: `#[proc_macro]` can only be applied to functions |
| 113 | + |
| 114 | +warning: `#[cold]` attribute cannot be used on macro calls |
| 115 | + --> $DIR/attr-on-mac-call.rs:42:5 |
| 116 | + | |
| 117 | +LL | #[cold] |
| 118 | + | ^^^^^^^ |
| 119 | + | |
| 120 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 121 | + = help: `#[cold]` can only be applied to functions |
| 122 | + |
| 123 | +warning: `#[no_mangle]` attribute cannot be used on macro calls |
| 124 | + --> $DIR/attr-on-mac-call.rs:45:5 |
| 125 | + | |
| 126 | +LL | #[no_mangle] |
| 127 | + | ^^^^^^^^^^^^ |
| 128 | + | |
| 129 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 130 | + = help: `#[no_mangle]` can be applied to functions and statics |
| 131 | + |
| 132 | +warning: `#[deprecated]` attribute cannot be used on macro calls |
| 133 | + --> $DIR/attr-on-mac-call.rs:48:5 |
| 134 | + | |
| 135 | +LL | #[deprecated] |
| 136 | + | ^^^^^^^^^^^^^ |
| 137 | + | |
| 138 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 139 | + = help: `#[deprecated]` can be applied to functions, data types, modules, unions, constants, statics, macro defs, type aliases, use statements, foreign statics, struct fields, traits, associated types, associated consts, enum variants, inherent impl blocks, and crates |
| 140 | + |
| 141 | +warning: `#[automatically_derived]` attribute cannot be used on macro calls |
| 142 | + --> $DIR/attr-on-mac-call.rs:51:5 |
| 143 | + | |
| 144 | +LL | #[automatically_derived] |
| 145 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 146 | + | |
| 147 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 148 | + = help: `#[automatically_derived]` can only be applied to trait impl blocks |
| 149 | + |
| 150 | +warning: `#[macro_use]` attribute cannot be used on macro calls |
| 151 | + --> $DIR/attr-on-mac-call.rs:54:5 |
| 152 | + | |
| 153 | +LL | #[macro_use] |
| 154 | + | ^^^^^^^^^^^^ |
| 155 | + | |
| 156 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 157 | + = help: `#[macro_use]` can be applied to modules, extern crates, and crates |
| 158 | + |
| 159 | +warning: `#[must_use]` attribute cannot be used on macro calls |
| 160 | + --> $DIR/attr-on-mac-call.rs:57:5 |
| 161 | + | |
| 162 | +LL | #[must_use] |
| 163 | + | ^^^^^^^^^^^ |
| 164 | + | |
| 165 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 166 | + = help: `#[must_use]` can be applied to functions, data types, unions, and traits |
| 167 | + |
| 168 | +warning: `#[no_implicit_prelude]` attribute cannot be used on macro calls |
| 169 | + --> $DIR/attr-on-mac-call.rs:60:5 |
| 170 | + | |
| 171 | +LL | #[no_implicit_prelude] |
| 172 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 173 | + | |
| 174 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 175 | + = help: `#[no_implicit_prelude]` can be applied to modules and crates |
| 176 | + |
| 177 | +warning: `#[path]` attribute cannot be used on macro calls |
| 178 | + --> $DIR/attr-on-mac-call.rs:63:5 |
| 179 | + | |
| 180 | +LL | #[path = ""] |
| 181 | + | ^^^^^^^^^^^^ |
| 182 | + | |
| 183 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 184 | + = help: `#[path]` can only be applied to modules |
| 185 | + |
| 186 | +warning: `#[ignore]` attribute cannot be used on macro calls |
| 187 | + --> $DIR/attr-on-mac-call.rs:66:5 |
| 188 | + | |
| 189 | +LL | #[ignore] |
| 190 | + | ^^^^^^^^^ |
| 191 | + | |
| 192 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 193 | + = help: `#[ignore]` can only be applied to functions |
| 194 | + |
| 195 | +warning: `#[should_panic]` attribute cannot be used on macro calls |
| 196 | + --> $DIR/attr-on-mac-call.rs:69:5 |
| 197 | + | |
| 198 | +LL | #[should_panic] |
| 199 | + | ^^^^^^^^^^^^^^^ |
| 200 | + | |
| 201 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 202 | + = help: `#[should_panic]` can only be applied to functions |
| 203 | + |
| 204 | +warning: 22 warnings emitted |
| 205 | + |
0 commit comments