-
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
ICE: compiler/rustc_middle/src/ty/fold.rs:829:17: Trying to collect bound vars with a bound region: DebruijnIndex(0) BoundRegion { var: 0, kind: BrAnon(0) } #85350
Comments
I imagine this is fairly easy to fix, but can't look into it right now. If someone is interested, ping me here or on Zulip. |
@rustbot claim |
Assigning priority as discussed in the Zulip thread of the Prioritization Working Group. @rustbot label -I-prioritize +P-medium |
Issue: rust-lang/rust#85350
No longer ICEs since #86795 |
Uh actually this is a problem that I didn't realize. The debug_assert in Binder::dummy should be an assert. @JohnTitor do you have the time to open a PR for this? I imagine we'll at the very least see a perf regression. But we might also see test failures or, in cases like this, new issues. Another alternative that @nikomatsakis and I discussed would be to add a |
Going to not mark this as not needs-test, because this shouldn't be passing. |
This is needed for rust-lang#85350 not to be passed.
…=jackh726 Convert `debug_assert!` to `assert!` in `Binder::dummy` This is needed for rust-lang#85350 not to be passed. r? `@jackh726`
Return err instead of ICE Having `escaping_bound_vars` results in ICE when trying to create `ty::Binder::dummy`, to avoid it we return err like the line above. I think this requires a more sophisticated fix, I would love to investigate if mentorship is available 🤓 Fixes rust-lang#95023 and rust-lang#85350
Fixed by #95085, for real this time I hope 😄 |
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: