about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/errors.rs
diff options
context:
space:
mode:
authorAdrian Taylor <adetaylor@chromium.org>2024-06-10 08:44:44 +0000
committerAdrian Taylor <adetaylor@chromium.org>2024-06-10 08:44:44 +0000
commita22130e1e0ed619b53bfe15c50c9c7f7400c3a5a (patch)
treef009348784166a8cd1ca8d049ac30542cfeeaa87 /compiler/rustc_pattern_analysis/src/errors.rs
parent386838d69fc404da44ce11537a2cc640683e4742 (diff)
downloadrust-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/errors.rs')
0 files changed, 0 insertions, 0 deletions