diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-03-14 21:28:39 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-03-14 21:28:39 +0100 |
| commit | 17d3308d3fe64bf402a6bfabcc16a62a702a2ba7 (patch) | |
| tree | ea177ffe32658c4d18b6538355be6c5d9651e93f | |
| parent | 3612953487bd37208de9a9df9ee5e3d40e957db8 (diff) | |
| download | rust-17d3308d3fe64bf402a6bfabcc16a62a702a2ba7.tar.gz rust-17d3308d3fe64bf402a6bfabcc16a62a702a2ba7.zip | |
Remove dead code.
| -rw-r--r-- | compiler/rustc_ast_lowering/src/lib.rs | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/compiler/rustc_ast_lowering/src/lib.rs b/compiler/rustc_ast_lowering/src/lib.rs index 80ccf727809..241c942f72c 100644 --- a/compiler/rustc_ast_lowering/src/lib.rs +++ b/compiler/rustc_ast_lowering/src/lib.rs @@ -438,31 +438,6 @@ impl<'a> TokenStreamLowering<'a> { } } -struct ImplTraitTypeIdVisitor<'a> { - ids: &'a mut SmallVec<[NodeId; 1]>, -} - -impl Visitor<'_> for ImplTraitTypeIdVisitor<'_> { - fn visit_ty(&mut self, ty: &Ty) { - match ty.kind { - TyKind::Typeof(_) | TyKind::BareFn(_) => return, - - TyKind::ImplTrait(id, _) => self.ids.push(id), - _ => {} - } - visit::walk_ty(self, ty); - } - - fn visit_path_segment(&mut self, path_span: Span, path_segment: &PathSegment) { - if let Some(ref p) = path_segment.args { - if let GenericArgs::Parenthesized(_) = **p { - return; - } - } - visit::walk_path_segment(self, path_span, path_segment) - } -} - impl<'a, 'hir> LoweringContext<'a, 'hir> { fn lower_crate(mut self, c: &Crate) -> hir::Crate<'hir> { /// Full-crate AST visitor that inserts into a fresh |
