Uh oh!
There was an error while loading. Please reload this page.
Revert "resolve: Avoid "self-confirming" import resolutions in one more case" - #77421
Conversation
rust-highfive
commented
Oct 1, 2020
(rust_highfive has picked a reviewer for you, use r? to override) |
Mark-Simulacrum
commented
Oct 1, 2020
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? |
Aaron1011
commented
Oct 1, 2020
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. |
Aaron1011
commented
Oct 1, 2020
@petrochenkov: Can you add a test for issue #74556 |
petrochenkov
commented
Oct 1, 2020
The case in #74556 is very similar to |
petrochenkov
commented
Oct 1, 2020
Updated. |
Aaron1011
commented
Oct 1, 2020
I'm not really sure what any of this resolver code is doing - is there someone with more familiarity who can review this? |
nagisa
commented
Oct 2, 2020
@bors r+, though I'm not comfortable with this being beta-nominated. |
oli-obk
commented
Oct 2, 2020
@bors r=nagisa |
bors
commented
Oct 2, 2020
📌 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? |
petrochenkov
commented
Oct 2, 2020
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`
petrochenkov
commented
Oct 5, 2020
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 fixrust-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 fixrust-lang#77586.
And remove the assert that #70236 tried to avoid instead.
Closes#74556.