You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=<try>
Allow lifetime elision in `Pin<&(mut) Self>`
This replaces #60944.
~~This PR changes elision rules to apply `self: &(mut) Self` elision rules even if nested in `Pin`.~~
This PR changes `self: &(mut) S` elision rules to instead visit the type of `self` and look for `&(mut) S` (where `is_self_ty(S)`) within it
Closes#52675
r? @eddyb
cc @cramertj@Centril@withoutboats@scottmcm
help: you can add a constraint to the return type to make it last less than `'static` and match the anonymous lifetime #1 defined on the method body at 8:5
0 commit comments