fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

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