fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error: cannot use a derive helper attribute through an import 2 --> $DIR/derive-helper-shadowing.rs:40:15 3 | 4LL | #[renamed] 5 | ^^^^^^^ 6 | 7note: the derive helper attribute imported here 8 --> $DIR/derive-helper-shadowing.rs:39: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:36:22 15 | 16LL | #[derive(GenHelperUse)] 17 | ^^^^^^^^^^^^ 18 | 19 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) 20 21error: cannot find attribute `empty_helper` in this scope 22 --> $DIR/derive-helper-shadowing.rs:14:11 23 | 24LL | #[empty_helper] 25 | ^^^^^^^^^^^^ 26... 27LL | gen_helper_use!(); 28 | ------------------ in this macro invocation 29 | 30 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) 31 32error[E0659]: `empty_helper` is ambiguous (name vs any other name during import resolution) 33 --> $DIR/derive-helper-shadowing.rs:24:13 34 | 35LL | use empty_helper; 36 | ^^^^^^^^^^^^ ambiguous name 37 | 38note: `empty_helper` could refer to the derive helper attribute defined here 39 --> $DIR/derive-helper-shadowing.rs:20:10 40 | 41LL | #[derive(Empty)] 42 | ^^^^^ 43note: `empty_helper` could also refer to the attribute macro imported here 44 --> $DIR/derive-helper-shadowing.rs:10:5 45 | 46LL | use test_macros::empty_attr as empty_helper; 47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 48 = help: use `crate::empty_helper` to refer to this attribute macro unambiguously 49 50error[E0659]: `empty_helper` is ambiguous (derive helper attribute vs any other name) 51 --> $DIR/derive-helper-shadowing.rs:19:3 52 | 53LL | #[empty_helper] 54 | ^^^^^^^^^^^^ ambiguous name 55 | 56note: `empty_helper` could refer to the derive helper attribute defined here 57 --> $DIR/derive-helper-shadowing.rs:20:10 58 | 59LL | #[derive(Empty)] 60 | ^^^^^ 61note: `empty_helper` could also refer to the attribute macro imported here 62 --> $DIR/derive-helper-shadowing.rs:10:5 63 | 64LL | use test_macros::empty_attr as empty_helper; 65 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 66 = help: use `crate::empty_helper` to refer to this attribute macro unambiguously 67 68error: aborting due to 5 previous errors 69 70For more information about this error, try `rustc --explain E0659`.