[WIP] resolve: Make ambiguity checking stricter#149145
Conversation
|
@bors try |
This comment has been minimized.
This comment has been minimized.
[WIP] resolve: Make ambiguity checking stricter
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
💔 Test for 0e7f93c failed: CI. Failed jobs:
|
bf5f878 to
58af356
Compare
This comment has been minimized.
This comment has been minimized.
|
@bors try |
[WIP] resolve: Make ambiguity checking stricter
This comment has been minimized.
This comment has been minimized.
|
@craterbot check |
|
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
🎉 Experiment
Footnotes
|
|
☔ The latest upstream changes (presumably #149462) made this pull request unmergeable. Please resolve the merge conflicts. |
58af356 to
27839b2
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
Closing in favor of #149596. |
With a current Rust, you get this warning: ``` warning: ambiguous import visibility: pub or pub(crate) --> src/lib.rs:21:9 | 21 | pub use vello; | ^^^^^ | = 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 <rust-lang/rust#149145> = note: ambiguous because of a conflict between a name from a glob import and an outer scope during import or macro resolution = note: `vello` could refer to a crate passed with `--extern` = help: use `::vello` to refer to this crate unambiguously note: `vello` could also refer to the crate imported here --> src/lib.rs:5:5 | 5 | use crate::prelude::*; | ^^^^^^^^^^^^^^^^^ = help: consider adding an explicit import of `vello` to disambiguate = help: or use `crate::vello` to refer to this crate unambiguously = note: `#[warn(ambiguous_import_visibilities)]` (part of `#[warn(future_incompatible)]`) on by default warning: `bevy_vello` (lib) generated 1 warning ```
With a current Rust, you get this warning: ``` warning: ambiguous import visibility: pub or pub(crate) --> src/lib.rs:21:9 | 21 | pub use vello; | ^^^^^ | = 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 <rust-lang/rust#149145> = note: ambiguous because of a conflict between a name from a glob import and an outer scope during import or macro resolution = note: `vello` could refer to a crate passed with `--extern` = help: use `::vello` to refer to this crate unambiguously note: `vello` could also refer to the crate imported here --> src/lib.rs:5:5 | 5 | use crate::prelude::*; | ^^^^^^^^^^^^^^^^^ = help: consider adding an explicit import of `vello` to disambiguate = help: or use `crate::vello` to refer to this crate unambiguously = note: `#[warn(ambiguous_import_visibilities)]` (part of `#[warn(future_incompatible)]`) on by default warning: `bevy_vello` (lib) generated 1 warning ```
With a current Rust, you get this warning: ``` warning: ambiguous import visibility: pub or pub(crate) --> src/lib.rs:21:9 | 21 | pub use vello; | ^^^^^ | = 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 <rust-lang/rust#149145> = note: ambiguous because of a conflict between a name from a glob import and an outer scope during import or macro resolution = note: `vello` could refer to a crate passed with `--extern` = help: use `::vello` to refer to this crate unambiguously note: `vello` could also refer to the crate imported here --> src/lib.rs:5:5 | 5 | use crate::prelude::*; | ^^^^^^^^^^^^^^^^^ = help: consider adding an explicit import of `vello` to disambiguate = help: or use `crate::vello` to refer to this crate unambiguously = note: `#[warn(ambiguous_import_visibilities)]` (part of `#[warn(future_incompatible)]`) on by default warning: `bevy_vello` (lib) generated 1 warning ```
With a current Rust, you get this warning: ``` warning: ambiguous import visibility: pub or pub(crate) --> src/lib.rs:21:9 | 21 | pub use vello; | ^^^^^ | = 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 <rust-lang/rust#149145> = note: ambiguous because of a conflict between a name from a glob import and an outer scope during import or macro resolution = note: `vello` could refer to a crate passed with `--extern` = help: use `::vello` to refer to this crate unambiguously note: `vello` could also refer to the crate imported here --> src/lib.rs:5:5 | 5 | use crate::prelude::*; | ^^^^^^^^^^^^^^^^^ = help: consider adding an explicit import of `vello` to disambiguate = help: or use `crate::vello` to refer to this crate unambiguously = note: `#[warn(ambiguous_import_visibilities)]` (part of `#[warn(future_incompatible)]`) on by default warning: `bevy_vello` (lib) generated 1 warning ```
Testing a possible proper fix for the
RustEmbedissue (#147196).cc @LorrensP-2158466