Skip to content

Commit da1ca94

Browse files
committed
Rewritelifetimes lint pass. This mainly reduces the amount of work done when no lint is produced, but has a few behavior changes.
* Input to output inference on `dyn Trait` lifetimes is handled with a sufficient MSRV. * Elision on `dyn Trait` input lifetimes where the lifetime is used only once is suggested on all versions. * Lifetimes that are only used as a constraint on a single type are no longer detected. This is a regression. * A bunch of cases where the lints where prevented, but only a single lifetime was non-elidible now lint on remaining lifetimes.
1 parent 67b44b1 commit da1ca94

20 files changed

+1177
-850
lines changed

clippy_lints/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#![feature(never_type)]
1010
#![feature(round_char_boundary)]
1111
#![feature(rustc_private)]
12+
#![feature(slice_partition_dedup)]
1213
#![feature(stmt_expr_attributes)]
1314
#![feature(unwrap_infallible)]
1415
#![recursion_limit = "512"]

0 commit comments

Comments
 (0)