fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: cannot use a derive helper attribute through an import 2 --> $DIR/derive-helper-shadowing.rs:42:15 3 | 4LL | #[renamed] 5 | ^^^^^^^ 6 | 7note: the derive helper attribute imported here 8 --> $DIR/derive-helper-shadowing.rs:41:17 9 | 10LL | use empty_helper as renamed; 11 | ^^^^^^^^^^^^^^^^^^^^^^^ 12 13error: cannot find attribute `empty_helper` in this scope 14 --> $DIR/derive-helper-shadowing.rs:38:22 15 | 16LL | #[derive(GenHelperUse)] 17 | ^^^^^^^^^^^^ 18 | 19 = note: this error originates in the derive macro `GenHelperUse` (in Nightly builds, run with -Z macro-backtrace for more info) 20help: consider importing this attribute macro through its public re-export 21 | 22LL + use empty_helper; 23 | 24 25error: cannot find attribute `empty_helper` in this scope 26 --> $DIR/derive-helper-shadowing.rs:14:11 27 | 28LL | #[empty_helper] 29 | ^^^^^^^^^^^^ 30... 31LL | gen_helper_use!(); 32 | ----------------- in this macro invocation 33 | 34 = note: this error originates in the macro `gen_helper_use` (in Nightly builds, run with -Z macro-backtrace for more info) 35help: consider importing this attribute macro through its public re-export 36 | 37LL + use crate::empty_helper; 38 | 39 40error[E0659]: `empty_helper` is ambiguous 41 --> $DIR/derive-helper-shadowing.rs:19:3 42 | 43LL | #[empty_helper] 44 | ^^^^^^^^^^^^ ambiguous name 45 | 46 = note: ambiguous because of a name conflict with a derive helper attribute 47note: `empty_helper` could refer to the derive helper attribute defined here 48 --> $DIR/derive-helper-shadowing.rs:22:10 49 | 50LL | #[derive(Empty)] 51 | ^^^^^ 52note: `empty_helper` could also refer to the attribute macro imported here 53 --> $DIR/derive-helper-shadowing.rs:10:5 54 | 55LL | use test_macros::empty_attr as empty_helper; 56 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 57 = help: use `crate::empty_helper` to refer to this attribute macro unambiguously 58 59warning: derive helper attribute is used before it is introduced 60 --> $DIR/derive-helper-shadowing.rs:19:3 61 | 62LL | #[empty_helper] 63 | ^^^^^^^^^^^^ 64... 65LL | #[derive(Empty)] 66 | ----- the attribute is introduced here 67 | 68 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! 69 = note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202> 70 = note: `#[warn(legacy_derive_helpers)]` on by default 71 72error: aborting due to 4 previous errors; 1 warning emitted 73 74For more information about this error, try `rustc --explain E0659`.