Skip to content
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

Support lifetime elision. #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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"
1 participant