forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathambiguous-import-visibility-macro.stderr
More file actions
29 lines (27 loc) · 1.51 KB
/
ambiguous-import-visibility-macro.stderr
File metadata and controls
29 lines (27 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
warning: ambiguous import visibility: pub(crate) or pub
--> $DIR/ambiguous-import-visibility-macro.rs:17:9
|
LL | pub use RustEmbed as Embed;
| ^^^^^^^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #149145 <https://github.com/rust-lang/rust/issues/149145>
= note: ambiguous because of a conflict between a name from a glob import and an outer scope during import or macro resolution
note: `RustEmbed` could refer to the derive macro imported here
--> $DIR/ambiguous-import-visibility-macro.rs:7:17
|
LL | pub use same_res_ambigious_extern_macro::*;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
LL | globbing! {} // this imports the same `RustEmbed` macro with `pub` visibility
| ------------ in this macro invocation
= help: consider adding an explicit import of `RustEmbed` to disambiguate
= help: or use `crate::RustEmbed` to refer to this derive macro unambiguously
note: `RustEmbed` could also refer to the derive macro imported here
--> $DIR/ambiguous-import-visibility-macro.rs:11:1
|
LL | #[macro_use] // this imports the `RustEmbed` macro with `pub(crate)` visibility
| ^^^^^^^^^^^^
= note: `#[warn(ambiguous_import_visibilities)]` (part of `#[warn(future_incompatible)]`) on by default
= note: this warning originates in the macro `globbing` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: 1 warning emitted