fork/rust

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

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

master
1.7 KiB43 linesraw
1error: macro-expanded `macro_export` macros from the current crate cannot be referred to by absolute paths
2  --> $DIR/local-modularized-tricky-fail-2.rs:13:9
3   |
4LL |     use exported;
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   = note: for more information, see issue #52234 <https://github.com/rust-lang/rust/issues/52234>
9note: the macro is defined here
10  --> $DIR/local-modularized-tricky-fail-2.rs:5:5
11   |
12LL | /     macro_rules! exported {
13LL | |         () => ()
14LL | |     }
15   | |_____^
16...
17LL |   define_exported!();
18   |   ------------------ in this macro invocation
19   = note: `#[deny(macro_expanded_macro_exports_accessed_by_absolute_paths)]` on by default
20   = note: this error originates in the macro `define_exported` (in Nightly builds, run with -Z macro-backtrace for more info)
21
22error: macro-expanded `macro_export` macros from the current crate cannot be referred to by absolute paths
23  --> $DIR/local-modularized-tricky-fail-2.rs:19:5
24   |
25LL |     ::exported!();
26   |     ^^^^^^^^^^
27   |
28   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
29   = note: for more information, see issue #52234 <https://github.com/rust-lang/rust/issues/52234>
30note: the macro is defined here
31  --> $DIR/local-modularized-tricky-fail-2.rs:5:5
32   |
33LL | /     macro_rules! exported {
34LL | |         () => ()
35LL | |     }
36   | |_____^
37...
38LL |   define_exported!();
39   |   ------------------ in this macro invocation
40   = note: this error originates in the macro `define_exported` (in Nightly builds, run with -Z macro-backtrace for more info)
41
42error: aborting due to 2 previous errors
43