diff options
| author | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-03-18 02:54:06 +0900 |
|---|---|---|
| committer | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-03-18 02:54:06 +0900 |
| commit | 30fbcdb3c40f4168e02b9dfab71ae2976011096c (patch) | |
| tree | d8e01b0db3ddd77dfb7d31d1db01ba9ef0af8249 | |
| parent | 3ba1ebea122238d1a5c613deb1bf60ce24bd8fd8 (diff) | |
| download | rust-30fbcdb3c40f4168e02b9dfab71ae2976011096c.tar.gz rust-30fbcdb3c40f4168e02b9dfab71ae2976011096c.zip | |
refactor: remove an unnecessary pattern for ignoring all parts
| -rw-r--r-- | compiler/rustc_resolve/src/late.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
