fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
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-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   = note: this error originates in a macro (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-3.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-3.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 a macro (in Nightly builds, run with -Z macro-backtrace for more info)
41
42error: aborting due to 2 previous errors
43