fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.4 KiB35 linesraw
1error[E0659]: `empty_helper` is ambiguous
2  --> $DIR/helper-attr-blocked-by-import-ambig.rs:7:3
3   |
4LL | #[empty_helper]
5   |   ^^^^^^^^^^^^ ambiguous name
6   |
7   = note: ambiguous because of a name conflict with a derive helper attribute
8note: `empty_helper` could refer to the derive helper attribute defined here
9  --> $DIR/helper-attr-blocked-by-import-ambig.rs:10:10
10   |
11LL | #[derive(Empty)]
12   |          ^^^^^
13note: `empty_helper` could also refer to the attribute macro imported here
14  --> $DIR/helper-attr-blocked-by-import-ambig.rs:5:5
15   |
16LL | use test_macros::empty_attr as empty_helper;
17   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18   = help: use `crate::empty_helper` to refer to this attribute macro unambiguously
19
20warning: derive helper attribute is used before it is introduced
21  --> $DIR/helper-attr-blocked-by-import-ambig.rs:7:3
22   |
23LL | #[empty_helper]
24   |   ^^^^^^^^^^^^
25...
26LL | #[derive(Empty)]
27   |          ----- the attribute is introduced here
28   |
29   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
30   = note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202>
31   = note: `#[warn(legacy_derive_helpers)]` on by default
32
33error: aborting due to previous error; 1 warning emitted
34
35For more information about this error, try `rustc --explain E0659`.