resolve: Partially convert ambiguous_glob_imports lint into a hard error#149195
resolve: Partially convert ambiguous_glob_imports lint into a hard error#149195petrochenkov wants to merge 1 commit into
ambiguous_glob_imports lint into a hard error#149195Conversation
|
Some changes occurred in compiler/rustc_codegen_gcc |
|
r? @nnethercote rustbot has assigned @nnethercote. Use |
|
@bors try |
This comment has been minimized.
This comment has been minimized.
resolve: Convert `ambiguous_glob_imports` lint into a hard error
|
@craterbot check |
|
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
This comment was marked as resolved.
This comment was marked as resolved.
|
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
🎉 Experiment
Footnotes
|
|
@petrochenkov: seems like a lot of regressions :( Should I review this? |
Not yet. |
|
Reminder, once the PR becomes ready for a review, use |
|
Correct me if I'm wrong on this one @rustbot author |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@bors try |
This comment has been minimized.
This comment has been minimized.
|
TODO: |
|
@craterbot run mode=check-only p=1 crates=https://crater-reports.s3.amazonaws.com/pr-149195-5/retry-regressed-list.txt |
|
👌 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
|
This comment has been minimized.
This comment has been minimized.
Change description for lang teamThis PR turns a subset of the The exact affected subset is hard to describe, because it's very heuristic-based. It's easier to say what is still a lint and not a hard error:
Crater run can be found in #149195 (comment). |
|
nick asked me to take over the review on this one r? @yaahc |
|
This makes sense to me. It'd be good to continue down the path of cleaning this up. Thanks @petrochenkov for pushing this forward. Thanks @yaahc for taking this review. @rfcbot fcp merge lang |
|
Team member @traviscross has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! cc @rust-lang/lang-advisors: FCP proposed for lang, please feel free to register concerns. |
|
Playground that confirms my understanding of a case that isn't an error: https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=d5f27a39e4cd4e9bf0e0e2f994bea78f (The only warning there is that the second prelude is unused, which is expected.) My understanding is that this hard error won't affect that case, so 👍. |
This comment has been minimized.
This comment has been minimized.
|
ping @nikomatsakis @scottmcm @tmandry, it's been 3 weeks. |
|
@rfcbot reviewed |
|
🔔 This is now entering its final comment period, as per the review above. 🔔 |
|
Is there an FCW that will get emitted if the crate-specific hacks get hit? |
Yes, |
|
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. |
|
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. |
| /// ### Example | ||
| /// | ||
| /// ```rust,compile_fail | ||
| /// ```rust,ignore (needs extern crate) |
There was a problem hiding this comment.
This example and the explanation below it are outdated. Is there a more suitable example that demonstrates the current lint behavior?
| && self.def_path_str(def_id2).ends_with("ggg::Class") | ||
| } | ||
|
|
||
| fn is_pdf_0_9_0(&self, old_glob_decl: Decl<'ra>, glob_decl: Decl<'ra>) -> bool { |
There was a problem hiding this comment.
Could this hack be removed since pdf-0.9.1 had fixed this (#149195 (comment))?
View all comments
I'm tired of this logic interfering with any attempts to fix or refactor glob imports.
Change description for lang team: #149195 (comment).
Part of #114095.