-
Notifications
You must be signed in to change notification settings - Fork 13.4k
HIR: Move lifetime elision to HIR lowering #28644
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
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: