Files
rust/compiler
bors b5caa5a842 Auto merge of #96833 - cjgillot:ast-lifetimes-single, r=petrochenkov
Lint single-use lifetimes during AST resolution

This PR rewrites `single_use_lifetime` and `unused_lifetime` lints to be based on the AST.
We have more information at our disposal, so we can reduce the amount of false positives.

Remaining false positive: single-use lifetimes in argument-position impl-trait.
I'm waiting for https://github.com/rust-lang/rust/issues/96529 to be fixed to have a clean and proper solution here.

Closes https://github.com/rust-lang/rust/issues/54079
Closes https://github.com/rust-lang/rust/issues/55057
Closes https://github.com/rust-lang/rust/issues/55058
Closes https://github.com/rust-lang/rust/issues/60554
Closes https://github.com/rust-lang/rust/issues/69952

r? `@petrochenkov`
2022-05-20 15:40:33 +00:00
..
2022-05-20 12:25:05 +02:00
2022-05-12 18:31:42 +09:00
2022-05-19 16:32:06 -07:00
2022-05-20 11:49:29 +02:00
2022-05-20 12:25:05 +02:00
2022-04-18 23:28:06 +02:00
2022-05-17 06:48:03 -04:00
2022-05-13 18:27:40 -04:00
2022-05-02 17:40:30 -07:00
2022-05-20 11:50:07 +02:00