You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -456,7 +457,7 @@ lint_map_unit_fn = `Iterator::map` call that discard the iterator's values
456
457
.map_label = after this call to map, the resulting iterator is `impl Iterator<Item = ()>`, which means the only information carried by the iterator is the number of items
457
458
.suggestion = you might have meant to use `Iterator::for_each`
458
459
459
-
lint_metavariable_still_repeating = variable '{$name}' is still repeating at this depth
460
+
lint_metavariable_still_repeating = variable `{$name}` is still repeating at this depth
460
461
461
462
lint_metavariable_wrong_operator = meta-variable repeats with different Kleene operator
462
463
@@ -632,8 +633,8 @@ lint_pattern_in_bodiless = patterns aren't allowed in functions without bodies
632
633
lint_pattern_in_foreign = patterns aren't allowed in foreign function declarations
633
634
.label = pattern not allowed in foreign function
634
635
635
-
lint_private_extern_crate_reexport =
636
-
extern crate `{$ident}` is private, and cannot be re-exported, consider declaring with `pub`
636
+
lint_private_extern_crate_reexport =extern crate `{$ident}` is private and cannot be re-exported
637
+
.suggestion = consider making the `extern crate` item publicly accessible
637
638
638
639
lint_proc_macro_back_compat = using an old version of `{$crate_name}`
639
640
.note = older versions of the `{$crate_name}` crate will stop compiling in future versions of Rust; please update to `{$crate_name}` v{$fixed_version}, or switch to one of the `{$crate_name}` alternatives
@@ -847,7 +848,8 @@ lint_unused_coroutine =
847
848
}{$post} that must be used
848
849
.note = coroutines are lazy and do nothing unless resumed
849
850
850
-
lint_unused_crate_dependency = external crate `{$extern_crate}` unused in `{$local_crate}`: remove the dependency or add `use {$extern_crate} as _;`
851
+
lint_unused_crate_dependency = extern crate `{$extern_crate}` is unused in crate `{$local_crate}`
852
+
.help = remove the dependency or add `use {$extern_crate} as _;` to the crate root
851
853
852
854
lint_unused_def = unused {$pre}`{$def}`{$post} that must be used
853
855
.suggestion = use `let _ = ...` to ignore the resulting value
Copy file name to clipboardExpand all lines: tests/ui/pub/pub-reexport-priv-extern-crate.stderr
+5-1
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ note: the crate import `core` is defined here
22
22
LL | extern crate core;
23
23
| ^^^^^^^^^^^^^^^^^^
24
24
25
-
error[E0365]: extern crate `core` is private, and cannot be re-exported, consider declaring with `pub`
25
+
error[E0365]: extern crate `core` is private and cannot be re-exported
26
26
--> $DIR/pub-reexport-priv-extern-crate.rs:2:9
27
27
|
28
28
LL | pub use core as reexported_core;
@@ -31,6 +31,10 @@ LL | pub use core as reexported_core;
31
31
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
32
32
= note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
33
33
= note: `#[deny(pub_use_of_private_extern_crate)]` on by default
34
+
help: consider making the `extern crate` item publicly accessible
0 commit comments