Uh oh!
There was an error while loading. Please reload this page.
Add HRTB-related regression test - #74889
Conversation
uh, so it makes some sense why this is happening 🤔 Thanks for pinging me here. I think what's going on here is that previously So I think that change is fine, but @nikomatsakis should also take a quick look at this. |
nikomatsakis
commented
Jul 29, 2020
I'm a bit unsure why this changed behavior, to be honest, and the error seems incorrect to me (that is, I think ideally the code would compile; obviously an error is an improvement over an ICE). It is certainly linked to the This probably has something to do with the way we sometimes try to prove that the where-clauses hold even within the callee, which is a bit silly. |
JohnTitor
commented
Jul 30, 2020
@nikomatsakis Makes sense. So, I think it's a good way here to add this test with a FIXME comment and follow-up the above point later so that we can prevent a regression at least. |
nikomatsakis
commented
Aug 5, 2020
@JohnTitor that sounds reasonable to me, yes |
nikomatsakis
commented
Aug 5, 2020
@JohnTitor can you add a comment to the test that says something like: // FIXME: It's not clear that this code ought to report an error, but the regression test is here to ensure that it does not ICE. See discussion on #74889 for details. |
JohnTitor
commented
Aug 5, 2020
@nikomatsakis Done :) |
nikomatsakis
commented
Aug 5, 2020
@bors r+ rollup Thanks! |
bors
commented
Aug 5, 2020
📌 Commit cc36c3d has been approved by |
Add HRTB-related regression test Closesrust-lang#59311 and cc rust-lang#71546 This closes the former but the test is taken from rust-lang#71546 (comment) since it seems they have the same cause and it's simplified.
Add HRTB-related regression test Closesrust-lang#59311 and cc rust-lang#71546 This closes the former but the test is taken from rust-lang#71546 (comment) since it seems they have the same cause and it's simplified.
bors
commented
Aug 6, 2020
bors
commented
Aug 6, 2020
☀️ Test successful - checks-actions, checks-azure |
Closes#59311 and cc #71546
This closes the former but the test is taken from #71546 (comment) since it seems they have the same cause and it's simplified.