File tree 2 files changed +16
-1
lines changed
compiler/rustc_lint_defs/src
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -1211,7 +1211,7 @@ declare_lint! {
1211
1211
Deny ,
1212
1212
"detect public re-exports of private extern crates" ,
1213
1213
@future_incompatible = FutureIncompatibleInfo {
1214
- reason: FutureIncompatibilityReason :: FutureReleaseErrorDontReportInDeps ,
1214
+ reason: FutureIncompatibilityReason :: FutureReleaseErrorReportInDeps ,
1215
1215
reference: "issue #34537 <https://github.com/rust-lang/rust/issues/34537>" ,
1216
1216
} ;
1217
1217
}
Original file line number Diff line number Diff line change @@ -40,3 +40,18 @@ error: aborting due to 3 previous errors
40
40
41
41
Some errors have detailed explanations: E0365, E0603.
42
42
For more information about an error, try `rustc --explain E0365`.
43
+ Future incompatibility report: Future breakage diagnostic:
44
+ error[E0365]: extern crate `core` is private and cannot be re-exported
45
+ --> $DIR/pub-reexport-priv-extern-crate.rs:2:9
46
+ |
47
+ LL | pub use core as reexported_core;
48
+ | ^^^^^^^^^^^^^^^^^^^^^^^
49
+ |
50
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
51
+ = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
52
+ = note: `#[deny(pub_use_of_private_extern_crate)]` on by default
53
+ help: consider making the `extern crate` item publicly accessible
54
+ |
55
+ LL | pub extern crate core;
56
+ | +++
57
+
You can’t perform that action at this time.
0 commit comments