about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-01-20 09:37:28 +0100
committerGitHub <noreply@github.com>2024-01-20 09:37:28 +0100
commitb7c2ba71c8ee838fc5e31d6c8eb320f4e976ce0f (patch)
treea2b8a468df3a92da0597dfda3745e6f72821ed34 /compiler/rustc_pattern_analysis/src
parent409949bc233a75a45e646c4f720ac50f2dc52709 (diff)
parentde2575f35d46dfa2b24eb205ef133a679bff1b31 (diff)
downloadrust-b7c2ba71c8ee838fc5e31d6c8eb320f4e976ce0f.tar.gz
rust-b7c2ba71c8ee838fc5e31d6c8eb320f4e976ce0f.zip
Rollup merge of #120148 - trevyn:issue-117965, r=cjgillot
`single_use_lifetimes`: Don't suggest deleting lifetimes with bounds

Closes #117965

```
9 |     pub fn get<'b: 'a>(&'b self) -> &'a str {
  |                ^^       -- ...is used only here
  |                |
  |                this lifetime...
```

In this example, I think the `&'b self` can be replaced with the bound itself, yielding `&'a self`, but this would require a deeper refactor. Happy to do as a follow-on PR if desired.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions