-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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. |
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. |
@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. |
@JohnTitor that sounds reasonable to me, yes |
@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. |
@nikomatsakis Done :) |
@bors r+ rollup Thanks! |
📌 Commit cc36c3d has been approved by |
Add HRTB-related regression test Closes rust-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 Closes rust-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.
☀️ 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.