2019-10-05 16:59:52 +03:00
|
|
|
error: cannot use a derive helper attribute through an import
|
2020-11-14 14:47:14 +03:00
|
|
|
--> $DIR/derive-helper-shadowing.rs:42:15
|
2019-10-05 16:59:52 +03:00
|
|
|
|
|
|
|
|
LL | #[renamed]
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
note: the derive helper attribute imported here
|
2020-11-14 14:47:14 +03:00
|
|
|
--> $DIR/derive-helper-shadowing.rs:41:17
|
2019-10-05 16:59:52 +03:00
|
|
|
|
|
|
|
|
LL | use empty_helper as renamed;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: cannot find attribute `empty_helper` in this scope
|
2020-11-14 14:47:14 +03:00
|
|
|
--> $DIR/derive-helper-shadowing.rs:38:22
|
2019-10-05 16:59:52 +03:00
|
|
|
|
|
|
|
|
LL | #[derive(GenHelperUse)]
|
|
|
|
| ^^^^^^^^^^^^
|
2019-12-16 15:56:47 +02:00
|
|
|
|
|
2023-01-17 03:09:49 +00:00
|
|
|
= help: consider importing this attribute macro:
|
2021-08-22 14:06:45 +02:00
|
|
|
empty_helper
|
2021-02-13 14:52:25 -05:00
|
|
|
= note: this error originates in the derive macro `GenHelperUse` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2019-10-05 16:59:52 +03:00
|
|
|
|
|
|
|
error: cannot find attribute `empty_helper` in this scope
|
|
|
|
--> $DIR/derive-helper-shadowing.rs:14:11
|
|
|
|
|
|
|
|
|
LL | #[empty_helper]
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | gen_helper_use!();
|
2021-10-14 13:28:28 -05:00
|
|
|
| ----------------- in this macro invocation
|
2019-12-16 15:56:47 +02:00
|
|
|
|
|
2023-01-17 03:09:49 +00:00
|
|
|
= help: consider importing this attribute macro:
|
2021-08-22 14:06:45 +02:00
|
|
|
crate::empty_helper
|
2021-02-13 14:52:25 -05:00
|
|
|
= note: this error originates in the macro `gen_helper_use` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2019-10-05 16:59:52 +03:00
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
error[E0659]: `empty_helper` is ambiguous
|
2020-11-14 14:47:14 +03:00
|
|
|
--> $DIR/derive-helper-shadowing.rs:26:13
|
2019-10-04 01:53:20 +03:00
|
|
|
|
|
|
|
|
LL | use empty_helper;
|
|
|
|
| ^^^^^^^^^^^^ ambiguous name
|
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
= note: ambiguous because of multiple potential import sources
|
2019-10-04 01:53:20 +03:00
|
|
|
note: `empty_helper` could refer to the derive helper attribute defined here
|
2020-11-14 14:47:14 +03:00
|
|
|
--> $DIR/derive-helper-shadowing.rs:22:10
|
2019-10-04 01:53:20 +03:00
|
|
|
|
|
|
|
|
LL | #[derive(Empty)]
|
|
|
|
| ^^^^^
|
|
|
|
note: `empty_helper` could also refer to the attribute macro imported here
|
2019-10-05 16:59:52 +03:00
|
|
|
--> $DIR/derive-helper-shadowing.rs:10:5
|
2019-10-04 01:53:20 +03:00
|
|
|
|
|
|
|
|
LL | use test_macros::empty_attr as empty_helper;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
= help: use `crate::empty_helper` to refer to this attribute macro unambiguously
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
error[E0659]: `empty_helper` is ambiguous
|
2019-10-05 16:59:52 +03:00
|
|
|
--> $DIR/derive-helper-shadowing.rs:19:3
|
2018-09-13 05:11:13 +03:00
|
|
|
|
|
2019-05-22 01:09:58 +03:00
|
|
|
LL | #[empty_helper]
|
|
|
|
| ^^^^^^^^^^^^ ambiguous name
|
2018-09-13 05:11:13 +03:00
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
= note: ambiguous because of a name conflict with a derive helper attribute
|
2019-05-22 01:09:58 +03:00
|
|
|
note: `empty_helper` could refer to the derive helper attribute defined here
|
2020-11-14 14:47:14 +03:00
|
|
|
--> $DIR/derive-helper-shadowing.rs:22:10
|
2018-09-13 05:11:13 +03:00
|
|
|
|
|
2019-05-22 01:09:58 +03:00
|
|
|
LL | #[derive(Empty)]
|
|
|
|
| ^^^^^
|
|
|
|
note: `empty_helper` could also refer to the attribute macro imported here
|
2019-10-05 16:59:52 +03:00
|
|
|
--> $DIR/derive-helper-shadowing.rs:10:5
|
2018-09-24 02:26:26 +03:00
|
|
|
|
|
2019-05-22 01:09:58 +03:00
|
|
|
LL | use test_macros::empty_attr as empty_helper;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
= help: use `crate::empty_helper` to refer to this attribute macro unambiguously
|
2018-09-13 05:11:13 +03:00
|
|
|
|
2020-11-14 14:47:14 +03:00
|
|
|
warning: derive helper attribute is used before it is introduced
|
|
|
|
--> $DIR/derive-helper-shadowing.rs:19:3
|
|
|
|
|
|
|
|
|
LL | #[empty_helper]
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | #[derive(Empty)]
|
|
|
|
| ----- the attribute is introduced here
|
|
|
|
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
= note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202>
|
2022-09-18 19:55:36 +04:00
|
|
|
= note: `#[warn(legacy_derive_helpers)]` on by default
|
2020-11-14 14:47:14 +03:00
|
|
|
|
|
|
|
error: aborting due to 5 previous errors; 1 warning emitted
|
2018-09-13 05:11:13 +03:00
|
|
|
|
2019-07-12 01:00:20 +03:00
|
|
|
For more information about this error, try `rustc --explain E0659`.
|