From 30fbcdb3c40f4168e02b9dfab71ae2976011096c Mon Sep 17 00:00:00 2001 From: Takayuki Maeda Date: Fri, 18 Mar 2022 02:54:06 +0900 Subject: [PATCH] refactor: remove an unnecessary pattern for ignoring all parts --- compiler/rustc_resolve/src/late.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_resolve/src/late.rs b/compiler/rustc_resolve/src/late.rs index 91695257137..d5b1aa00e52 100644 --- a/compiler/rustc_resolve/src/late.rs +++ b/compiler/rustc_resolve/src/late.rs @@ -1129,7 +1129,7 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> { } for param in &generics.params { - if let GenericParamKind::Lifetime { .. } = param.kind { + if let GenericParamKind::Lifetime = param.kind { continue; }