Skip to content

Commit 17d3308

Browse files
committed
Remove dead code.
1 parent 3612953 commit 17d3308

File tree

1 file changed

+0
-25
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+0
-25
lines changed

compiler/rustc_ast_lowering/src/lib.rs

-25
Original file line numberDiff line numberDiff line change
@@ -438,31 +438,6 @@ impl<'a> TokenStreamLowering<'a> {
438438
}
439439
}
440440

441-
struct ImplTraitTypeIdVisitor<'a> {
442-
ids: &'a mut SmallVec<[NodeId; 1]>,
443-
}
444-
445-
impl Visitor<'_> for ImplTraitTypeIdVisitor<'_> {
446-
fn visit_ty(&mut self, ty: &Ty) {
447-
match ty.kind {
448-
TyKind::Typeof(_) | TyKind::BareFn(_) => return,
449-
450-
TyKind::ImplTrait(id, _) => self.ids.push(id),
451-
_ => {}
452-
}
453-
visit::walk_ty(self, ty);
454-
}
455-
456-
fn visit_path_segment(&mut self, path_span: Span, path_segment: &PathSegment) {
457-
if let Some(ref p) = path_segment.args {
458-
if let GenericArgs::Parenthesized(_) = **p {
459-
return;
460-
}
461-
}
462-
visit::walk_path_segment(self, path_span, path_segment)
463-
}
464-
}
465-
466441
impl<'a, 'hir> LoweringContext<'a, 'hir> {
467442
fn lower_crate(mut self, c: &Crate) -> hir::Crate<'hir> {
468443
/// Full-crate AST visitor that inserts into a fresh

0 commit comments

Comments
 (0)