Skip to content

Conversation

@taiki-e
Copy link
Contributor

@taiki-e taiki-e commented Jun 9, 2020

Fixes #106

Currently, these are only applying for function arguments, but this PR change this to also apply to trait and implementor's paths.

impl Trait<'_> for &Type<'_> {}

// converted to:
impl<'impl_life0, 'impl_life1, 'impl_life2> 
    Trait<'impl_life0> for &'impl_life1 Type<'impl_life2> {}

@dtolnay dtolnay merged commit 3da67b6 into dtolnay:master Jun 9, 2020
@taiki-e taiki-e deleted the impl-lifetime branch June 9, 2020 01:33
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.

Translation of lifetimes in Fn trait input parameters

2 participants