about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/lints.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-12-26 02:12:33 +0000
committerMichael Goulet <michael@errs.io>2023-12-26 02:12:33 +0000
commit4ae024c75489eca46dfacad5aa6f33023acce635 (patch)
tree9d0974315e51adfa41df9cbaae6759604ac7f4af /compiler/rustc_pattern_analysis/src/lints.rs
parentae40f6a7ffdda1f58794e25db2d8c9798cfe1e40 (diff)
downloadrust-4ae024c75489eca46dfacad5aa6f33023acce635.tar.gz
rust-4ae024c75489eca46dfacad5aa6f33023acce635.zip
Elide more lifetimes
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/lints.rs')
-rw-r--r--compiler/rustc_pattern_analysis/src/lints.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_pattern_analysis/src/lints.rs b/compiler/rustc_pattern_analysis/src/lints.rs
index e8b714204a3..e78cbd13822 100644
--- a/compiler/rustc_pattern_analysis/src/lints.rs
+++ b/compiler/rustc_pattern_analysis/src/lints.rs
@@ -64,7 +64,7 @@ impl<'p, 'tcx> PatternColumn<'p, 'tcx> {
         pcx.ctors_for_ty().split(pcx, column_ctors)
     }
 
-    fn iter<'b>(&'b self) -> impl Iterator<Item = &'p DeconstructedPat<'p, 'tcx>> + Captures<'b> {
+    fn iter(&self) -> impl Iterator<Item = &'p DeconstructedPat<'p, 'tcx>> + Captures<'_> {
         self.patterns.iter().copied()
     }