diff options
| author | Adrian Taylor <adetaylor@chromium.org> | 2024-06-10 08:44:44 +0000 |
|---|---|---|
| committer | Adrian Taylor <adetaylor@chromium.org> | 2024-06-10 08:44:44 +0000 |
| commit | a22130e1e0ed619b53bfe15c50c9c7f7400c3a5a (patch) | |
| tree | f009348784166a8cd1ca8d049ac30542cfeeaa87 /compiler/rustc_pattern_analysis/src | |
| parent | 386838d69fc404da44ce11537a2cc640683e4742 (diff) | |
| download | rust-a22130e1e0ed619b53bfe15c50c9c7f7400c3a5a.tar.gz rust-a22130e1e0ed619b53bfe15c50c9c7f7400c3a5a.zip | |
Elision: consider lifetimes from &T iff T has Self
Change the algorithm which determines whether a self lifetime can be used for return type lifetime elision, such that we consider lifetimes attached to any reference in the self type, so long as Self can be found anywhere inside the type of that reference.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions
