diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-12-03 22:40:30 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-12-03 22:40:30 +0000 |
| commit | b1514108e270e198e13b1f9abb8af16960afc1bc (patch) | |
| tree | 4a244734539612aebb492d138f6a3aa7a2075519 /compiler | |
| parent | cab4fd678c5b148a330f2bf255bf28a67dfea0fc (diff) | |
| download | rust-b1514108e270e198e13b1f9abb8af16960afc1bc.tar.gz rust-b1514108e270e198e13b1f9abb8af16960afc1bc.zip | |
Skip recording resolution for duplicated generic params.
Diffstat (limited to 'compiler')
| -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 2d2408c061e..08dd1825f82 100644 --- a/compiler/rustc_resolve/src/late.rs +++ b/compiler/rustc_resolve/src/late.rs @@ -2360,8 +2360,8 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> { if let GenericParamKind::Lifetime = param.kind { // Record lifetime res, so lowering knows there is something fishy. self.record_lifetime_param(param.id, LifetimeRes::Error); - continue; } + continue; } Entry::Vacant(entry) => { entry.insert(param.ident.span); |
