-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Revert "resolve: Avoid "self-confirming" import resolutions in one more case" #77421
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
cc @rust-lang/compiler @pnkfelix @nikomatsakis for beta-backport approval, we'll need it by Monday if we want it to get in I don't think I'm a good reviewer here. r? @Aaron1011 perhaps? |
I've never touched any of the resolver code (all of my work has been in the parser/macro code). However, I can try my best to review this. |
@petrochenkov: Can you add a test for issue #74556 |
The case in #74556 is very similar to |
ea4878f
to
b20bce8
Compare
Updated. |
I'm not really sure what any of this resolver code is doing - is there someone with more familiarity who can review this? |
@bors r+, though I'm not comfortable with this being beta-nominated. |
@bors r=nagisa |
📌 Commit b20bce8 has been approved by |
Given that the release is very soon, I agree that it's risky to backport, since the PR can potentially turn code compiling on 1.44-1.46 into an error (it fixes a stable-to-stable regression). |
This re-opens #62767? |
No, this PR removes the assert from #62767. |
…as-schievink Rollup of 8 pull requests Successful merges: - rust-lang#75377 (Fix Debug implementations of some of the HashMap and BTreeMap iterator types) - rust-lang#76107 (Write manifest for MAJOR.MINOR channel to enable rustup convenience) - rust-lang#76745 (Move Wrapping<T> ui tests into library) - rust-lang#77182 (Add missing examples for Fd traits) - rust-lang#77251 (Bypass const_item_mutation if const's type has Drop impl) - rust-lang#77264 (Only use LOCAL_{STDOUT,STDERR} when set_{print/panic} is used. ) - rust-lang#77421 (Revert "resolve: Avoid "self-confirming" import resolutions in one more case") - rust-lang#77452 (Permit ty::Bool in const generics for v0 mangling) Failed merges: r? `@ghost`
Removing beta-nomination since this causes breakage in practice - #77586. |
…chenkov Revert "Revert "resolve: Avoid "self-confirming" import resolutions in one more case"" Specifically, this reverts commit b20bce8 from rust-lang#77421 to fix rust-lang#77586. The lang team has decided that for the time being we want to avoid the breakage here (perhaps for a future edition; though almost certainly not the upcoming one), though a future PR may want to add a lint around this case (and perhaps others) which are unlikely to be readable code. r? `@petrochenkov` to confirm this is the right way to fix rust-lang#77586.
And remove the assert that #70236 tried to avoid instead.
Closes #74556.