File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
compiler/rustc_middle/src/ty Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -592,18 +592,6 @@ impl<'v> hir::intravisit::Visitor<'v> for TraitObjectVisitor<'v> {
592
592
}
593
593
}
594
594
595
- /// Collect al types that have an implicit `'static` obligation that we could suggest `'_` for.
596
- pub struct StaticLifetimeVisitor < ' tcx > ( pub Vec < Span > , pub crate :: hir:: map:: Map < ' tcx > ) ;
597
-
598
- impl < ' v > hir:: intravisit:: Visitor < ' v > for StaticLifetimeVisitor < ' v > {
599
- fn visit_lifetime ( & mut self , lt : & ' v hir:: Lifetime ) {
600
- if let hir:: LifetimeName :: ImplicitObjectLifetimeDefault | hir:: LifetimeName :: Static = lt. res
601
- {
602
- self . 0 . push ( lt. ident . span ) ;
603
- }
604
- }
605
- }
606
-
607
595
pub struct IsSuggestableVisitor < ' tcx > {
608
596
tcx : TyCtxt < ' tcx > ,
609
597
infer_suggestable : bool ,
You can’t perform that action at this time.
0 commit comments