Skip to content

HIR: Move lifetime elision to HIR lowering #28644

Description

@nrc

If we can

Activity

added
A-HIRArea: The high-level intermediate representation (HIR)
on Sep 24, 2015

arielb1 commented on Sep 24, 2015

@arielb1
Contributor

@nrc

it is somewhat hard, as elision can occur in type aliases. This of course all depends on moving resolution.

eddyb commented on Sep 27, 2015

@eddyb
Contributor

This seems to assume lifetime elision is a syntactical sugar, when it's actually semantic sugar (it depends on lifetimes in definitions of types).

nrc commented on Sep 27, 2015

@nrc
MemberAuthor

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.

jonas-schievink commented on Jul 17, 2016

@jonas-schievink
Contributor

This of course all depends on moving resolution.

As far as I can tell, this was done in #33443. Can this now be fully implemented?

eddyb commented on Jul 17, 2016

@eddyb
Contributor

@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.

eddyb commented on Mar 8, 2017

@eddyb
Contributor

#39305 did as much as I thought was reasonable, anything more would really pollute lowering.
@nrc are you happy with that progress, for closing this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-HIRArea: The high-level intermediate representation (HIR)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions