diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-05 20:43:44 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-05 20:43:44 +0100 |
| commit | 4ebbb20dadc0dd559bf42f6232b8ebf7b42cd437 (patch) | |
| tree | 848e48ca2069b0649ed45a563f1737c208c8a33f /compiler/rustc_resolve/src | |
| parent | 66a4cb5368873fd793c53884e30dd543c4cad04c (diff) | |
| parent | b1514108e270e198e13b1f9abb8af16960afc1bc (diff) | |
| download | rust-4ebbb20dadc0dd559bf42f6232b8ebf7b42cd437.tar.gz rust-4ebbb20dadc0dd559bf42f6232b8ebf7b42cd437.zip | |
Rollup merge of #105230 - cjgillot:issue-104312, r=petrochenkov
Skip recording resolution for duplicated generic params. Turns out the fix was simpler than I thought. Fixes https://github.com/rust-lang/rust/issues/104312
Diffstat (limited to 'compiler/rustc_resolve/src')
| -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 51a53f7b37c..fc9c9334aea 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); |
