-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
HIR: Move lifetime elision to HIR lowering #28644
Comments
it is somewhat hard, as elision can occur in type aliases. This of course all depends on moving resolution. |
This seems to assume lifetime elision is a syntactical sugar, when it's actually semantic sugar (it depends on lifetimes in definitions of types). |
I believe at least some elision is purely syntactic - that could be moved here and the type-dependent stuff left alone. Not sure about the aliases issue. |
As far as I can tell, this was done in #33443. Can this now be fully implemented? |
@jonas-schievink Hmm, I suppose you can always look at lifetime parameter definitions in custom user types, so this would work. However, the current implementation takes advantage of the Debruijn index representation of late-bound lifetimes to avoid actually touching the lifetime parameter definitions. |
If we can
The text was updated successfully, but these errors were encountered: