fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
1.5 KiB30 linesraw
1error: extern crate `core` is private, and cannot be re-exported (error E0365), consider declaring with `pub`
2  --> $DIR/pub-reexport-priv-extern-crate.rs:4:9
3   |
4LL | pub use core as reexported_core;
5   |         ^^^^^^^^^^^^^^^^^^^^^^^
6   |
7   = note: `#[deny(pub_use_of_private_extern_crate)]` 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 #34537 <https://github.com/rust-lang/rust/issues/34537>
10
11error: extern crate `core` is private, and cannot be re-exported (error E0365), consider declaring with `pub`
12  --> $DIR/pub-reexport-priv-extern-crate.rs:12:9
13   |
14LL |     use foo1::core;
15   |         ^^^^^^^^^^
16   |
17   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
18   = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
19
20error: extern crate `core` is private, and cannot be re-exported (error E0365), consider declaring with `pub`
21  --> $DIR/pub-reexport-priv-extern-crate.rs:20:13
22   |
23LL |     pub use foo2::bar::core;
24   |             ^^^^^^^^^^^^^^^
25   |
26   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
27   = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
28
29error: aborting due to 3 previous errors
30