We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
StaticLifetimeVisitor
1 parent 092a284 commit 75558b2Copy full SHA for 75558b2
compiler/rustc_middle/src/ty/diagnostics.rs
@@ -592,18 +592,6 @@ impl<'v> hir::intravisit::Visitor<'v> for TraitObjectVisitor<'v> {
592
}
593
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
pub struct IsSuggestableVisitor<'tcx> {
608
tcx: TyCtxt<'tcx>,
609
infer_suggestable: bool,
0 commit comments