-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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] Unresolved HRTB lifetime in APIT #96954
Comments
This regressed in #95779
|
cc @cjgillot |
The bug comes from a difference between the old and the new analysis. The old analysis was incorrect in that case: there should not be an error, |
Correct fix (at least for now) is probably to change this back to an error - along with the case above. After that, correct fix is probably to treat this as a |
Assigning priority as discussed in the Zulip thread of the Prioritization Working Group. @rustbot label -I-prioritize +P-medium |
Fail gracefully when encountering an HRTB in APIT. Fixes rust-lang#96954 ~The first commit will be merged as part of rust-lang#97415
This ICEs on nightly, but only errors in stable or beta:
fn test_argument_position(x: impl for<'a> Tr<'a, Assoc = impl Copy + 'a>) {}
playground
Code
Backtrace
The text was updated successfully, but these errors were encountered: