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
internal: Lower outlive goals, respect them in display impls #16996
Conversation
lifetime: match lifetime { | ||
Some(it) => match it.bound_var(Interner) { | ||
Some(bound_var) => LifetimeData::BoundVar(BoundVar::new( | ||
DebruijnIndex::INNERMOST, | ||
bound_var.index, | ||
)) | ||
.intern(Interner), | ||
None => it, | ||
}, | ||
None => static_lifetime(), | ||
}, | ||
}) | ||
.intern(Interner) |
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.
This is kind of ugly, not sure if there is a better way (while also avoiding allocations, or iterating twice). We lower all bounds in a with_shifted_in(DebruijnIndex::ONE
which isn't correct for the lifetime of the trait object,
@bors r+ |
☀️ Test successful - checks-actions |
No description provided.