-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Do not attempt to compute size of a type with escaping lifetimes #15434
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
Conversation
@rustbot note Beta nomination The bug is a regression from stable to stable in Clippy 1.89. The fix should be applied to 1.90, and probably to 1.89.1 if there is a point release. The fix is safe as it makes the lint triggers in less cases. The only risk, and it is unlikely, would be the creation of false negatives which would be benign. Cc @flip1995 |
A type with escaping bound vars cannot be wrapped in a dummy binder during size computation.
229929e
to
c752fb2
Compare
Force-pushed to update comment with a more precise one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
) A type with escaping bound vars cannot be wrapped in a dummy binder during size computation. Fixes rust-lang/rust-clippy#15429 changelog: [`zero_sized_hashmap_values`]: fix ICE in types with escaping lifetimes r? Jarcho <!-- TRIAGEBOT_START --> <!-- TRIAGEBOT_SUMMARY_START --> ### Summary Notes - [Beta nomination](rust-lang/rust-clippy#15434 (comment)) by [samueltardieu](https://github.com/samueltardieu) *Managed by `@rustbot`—see [help](https://forge.rust-lang.org/triagebot/note.html) for details* <!-- TRIAGEBOT_SUMMARY_END --> <!-- TRIAGEBOT_END -->
[beta] Clippy backport Only a single commit to backport: - rust-lang/rust-clippy#15434 We'd like to get this ICE fix in a release earlier. r? Mark-Simulacrum
A type with escaping bound vars cannot be wrapped in a dummy binder during size computation.
Fixes #15429
changelog: [
zero_sized_hashmap_values
]: fix ICE in types with escaping lifetimesr? Jarcho
Summary Notes
Managed by
@rustbot
—see help for details