Skip to content

Conversation

@danielhenrymantilla
Copy link
Owner

Fixes #7

This is achieved by having the (proc-)macro replace
elided lifetimes with auto-generated explicitly-named
equivalent signatures, before applying the rest of the
with_locals magic.

TODO:

  • Add UI tests to make sure the error messages are nice;

  • Add a functionality to hack deny(elided_lifetimes_in_paths)
    to make sure the macro does not misbehave (since it can't,
    otherwise, know there are elided lifetime parameters there).

Fixes #7

This is achieved by having the (proc-)macro replace
elided lifetimes with auto-generated explicitly-named
equivalent signatures, before applying the rest of the
`with_locals` magic.

TODO:

  - Add UI tests to make sure the error messages are nice;

  - Add a functionality to hack `deny(elided_lifetimes_in_paths)`
    to make sure the macro does not misbehave (since it can't,
    otherwise, know there are elided lifetime parameters there).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support "lifetime elision"

2 participants