-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Trait resolver hangs when evaluating cyclic requirement with lifetimes #96340
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
I will minimize this further later |
And it's properly minimized now! |
This comment was marked as resolved.
This comment was marked as resolved.
I don't think it's related, this issue is broken on stable as well. |
Bisecting this examples shows that it started hanging in |
Assigning priority as discussed in the Zulip thread of the Prioritization Working Group. @rustbot label -I-prioritize +P-medium |
I'd like to work on that issue if no one is already working on it. |
@rustbot claim |
I tried this code:
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=122bc8148cdc1e27553e68ca7c6d6253
I expected to see this happen: Code does not compile and error out because of the cyclic requirement
Instead, this happened:
rustc
hangsrustc --version --verbose
:I also tried running the same code with
-Zchalk
, it ICEsBacktrace
Removing the lifetimes fixes the issue, and compilation fails with a trait resolution overflow. The lifetimes seem to be confusing the overflow checker.
The text was updated successfully, but these errors were encountered: