-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Borrow checker error does not figure out source of 'static
requirement through closure capture
#126342
Comments
Regression in rust-lang-ci@4ffe0cc searched nightlies: from nightly-2024-03-21 to nightly-2024-03-26 bisected with cargo-bisect-rustc v0.6.8Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --access github --start 2024-03-21 --end 2024-03-26 --prompt --preserve -- check @estebank @oli-obk I see the diagnostics changes caused test changes and you were aware of those, but it's really unfortunate :(.. i was really confused by this, would be great if it could be restored somehow |
WG-prioritization assigning priority (Zulip discussion). Thanks for bisecting! cc @oli-obk for #122820 @rustbot label -I-prioritize +P-medium |
This will be stable later today. |
Yea, this is unfortunate, but previously was relying on essentially random information to emit the better diagnostic. We could try to get a similar enough mostly-random value for deciding the order of things and thus getting the diagnostic back, but I didn't do that in the hope of actually finding a reasonable heuristic |
Code
Current output
Desired output
Rationale and extra context
No response
Other cases
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: