diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-03-23 22:47:22 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-03-23 22:47:22 +0100 |
| commit | 4c0b7ac7ba97092faf4a1322981ad6e5b1f01111 (patch) | |
| tree | ebd8521efd3b1d535951767ed6443c7e2e636ab1 /compiler/rustc_passes/src | |
| parent | d04c3aa8656f6588c87bafafb34d51239dab98bb (diff) | |
| download | rust-4c0b7ac7ba97092faf4a1322981ad6e5b1f01111.tar.gz rust-4c0b7ac7ba97092faf4a1322981ad6e5b1f01111.zip | |
GenericParam does not need to be a HIR owner.
Diffstat (limited to 'compiler/rustc_passes/src')
| -rw-r--r-- | compiler/rustc_passes/src/hir_id_validator.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/compiler/rustc_passes/src/hir_id_validator.rs b/compiler/rustc_passes/src/hir_id_validator.rs index 79e3b5952ac..944a3097a61 100644 --- a/compiler/rustc_passes/src/hir_id_validator.rs +++ b/compiler/rustc_passes/src/hir_id_validator.rs @@ -172,17 +172,4 @@ impl<'a, 'hir> intravisit::Visitor<'hir> for HirIdValidator<'a, 'hir> { // we are currently in. So for those it's correct that they have a // different owner. } - - fn visit_generic_param(&mut self, param: &'hir hir::GenericParam<'hir>) { - if let hir::GenericParamKind::Type { - synthetic: Some(hir::SyntheticTyParamKind::ImplTrait), - .. - } = param.kind - { - // Synthetic impl trait parameters are owned by the node of the desugared type. - // This means it is correct for them to have a different owner. - } else { - intravisit::walk_generic_param(self, param); - } - } } |
