@@ -392,7 +392,7 @@ pub fn run_core(options: RustdocOptions) -> (clean::Crate, RenderInfo, RenderOpt
392
392
let hir = tcx. hir ( ) ;
393
393
let body = hir. body ( hir. body_owned_by ( hir. as_local_hir_id ( def_id) ) ) ;
394
394
debug ! ( "visiting body for {:?}" , def_id) ;
395
- EmitIgnoredResolutionErrors :: new ( & tcx) . visit_body ( body) ;
395
+ EmitIgnoredResolutionErrors :: new ( tcx) . visit_body ( body) ;
396
396
DEFAULT_TYPECK . with ( |typeck| typeck ( tcx, def_id) )
397
397
} ;
398
398
} ) ,
@@ -602,17 +602,17 @@ thread_local!(static DEFAULT_TYPECK: for<'tcx> fn(TyCtxt<'tcx>, LocalDefId) -> &
602
602
/// the name resolution pass may find errors that are never emitted.
603
603
/// If typeck is called after this happens, then we'll get an ICE:
604
604
/// 'Res::Error found but not reported'. To avoid this, emit the errors now.
605
- struct EmitIgnoredResolutionErrors < ' a , ' tcx > {
606
- tcx : & ' a TyCtxt < ' tcx > ,
605
+ struct EmitIgnoredResolutionErrors < ' tcx > {
606
+ tcx : TyCtxt < ' tcx > ,
607
607
}
608
608
609
- impl < ' a , ' tcx > EmitIgnoredResolutionErrors < ' a , ' tcx > {
610
- fn new ( tcx : & ' a TyCtxt < ' tcx > ) -> Self {
609
+ impl < ' tcx > EmitIgnoredResolutionErrors < ' tcx > {
610
+ fn new ( tcx : TyCtxt < ' tcx > ) -> Self {
611
611
Self { tcx }
612
612
}
613
613
}
614
614
615
- impl < ' tcx > Visitor < ' tcx > for EmitIgnoredResolutionErrors < ' _ , ' tcx > {
615
+ impl < ' tcx > Visitor < ' tcx > for EmitIgnoredResolutionErrors < ' tcx > {
616
616
type Map = Map < ' tcx > ;
617
617
618
618
fn nested_visit_map ( & mut self ) -> NestedVisitorMap < Self :: Map > {
0 commit comments