-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Borrowchecker regression in 1.26 #49945
Comments
visiting for triage. @pietroalbini are you in a position to narrow this into a stand-alone test case? |
triage : P-high |
That was just from crater, I can try bisecting in a few hours though. |
Didn't have time to investigate this in the past days, sorry! cc @nikomatsakis |
OK, I see what is happening. Fascinating; I did not anticipate this side-effect of making closures implement
I guess this is "working as expected", but it's a surprise interaction I had not considered in advance. (More generally, it seems to suggest that making any struct cc @rust-lang/lang |
Still, I don't think it's worth reverting the change, and we are certainly not going to change this aspect of closure upvar inference; if we did, then a TON of things would stop working (basically any |
Idea, discussed in gitter: In the edition, if closures are not declared as |
Ping @nikomatsakis! We're approaching the release of 1.26, what should we do with this regression? |
@pietroalbini I believe we are going to categorize this as "won't fix". The crate in question has already worked around it, in any case. |
@nikomatsakis ok, closing this. |
The text was updated successfully, but these errors were encountered: