File tree 1 file changed +0
-25
lines changed
compiler/rustc_ast_lowering/src
1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -438,31 +438,6 @@ impl<'a> TokenStreamLowering<'a> {
438
438
}
439
439
}
440
440
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
-
466
441
impl < ' a , ' hir > LoweringContext < ' a , ' hir > {
467
442
fn lower_crate ( mut self , c : & Crate ) -> hir:: Crate < ' hir > {
468
443
/// Full-crate AST visitor that inserts into a fresh
You can’t perform that action at this time.
0 commit comments