-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Regression from 1.20 to 1.21 stable -> stable with StreamingIterator code #45438
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
Comments
@eddyb Could this be the same root cause as this regression even though it has a different version rang on it? |
I doubt it, empty lifetime vs 'static. I don't know what happens here, this is HRTB |
triage: P-high |
OK, so, I had not looked so closely at this example before. Now I see why the compiler is upset. There is this where-clause that Now, as it happens, I think that this handling is not very good. The implied bounds and other work we've got going on would allow us to accept this program, I believe. But with the compiler's current handling of higher-ranked trait bounds, I think it's working as I expect. @Mark-Simulacrum how far back can we bisect? Oh, we have a nightly bisection tool, right? I'd be interested (if the data can be readily obtained) to find out when this behavior changed. |
We can bisect 90 days back by commit, and with some work by nightly (i.e., different bisectors -- mine can do only 90 days as of now, whereas nightlies should still be possible indefinitely). I don't have time in the short term to run that bisection but @est31 might be able to... |
Sad to hear that it was decided to delete PR artifacts after 90 days... I think it should be at least 6 months, maybe even a year until deletion. Well we were lucky that this particular regression is inside that window. The regressing commit: 426711d 'Auto merge of #43786 - scalexm:issue-43784, r=nikomatsakis"' |
@est31 thanks! That was indeed a soundness fix. Seems plausible that this is expected fallout. |
Since this is the result of a bugfix, going to close this. |
The following code compiles with Rust version 1.20, but not with 1.21 and above:
Error in Rust 1.21+:
Note the
Self: 'a
bound onStreamingIterator
. If I remove it, the error goes away.The text was updated successfully, but these errors were encountered: