@@ -620,7 +620,7 @@ crate fn find_testable_code<T: doctest::Tester>(
620620 tests : & mut T ,
621621 error_codes : ErrorCodes ,
622622 enable_per_target_ignores : bool ,
623- extra_info : Option < & ExtraInfo < ' _ , ' _ > > ,
623+ extra_info : Option < & ExtraInfo < ' _ > > ,
624624) {
625625 let mut parser = Parser :: new ( doc) . into_offset_iter ( ) ;
626626 let mut prev_offset = 0 ;
@@ -681,19 +681,19 @@ crate fn find_testable_code<T: doctest::Tester>(
681681 }
682682}
683683
684- crate struct ExtraInfo < ' a , ' b > {
684+ crate struct ExtraInfo < ' tcx > {
685685 hir_id : Option < HirId > ,
686686 item_did : Option < DefId > ,
687687 sp : Span ,
688- tcx : & ' a TyCtxt < ' b > ,
688+ tcx : TyCtxt < ' tcx > ,
689689}
690690
691- impl < ' a , ' b > ExtraInfo < ' a , ' b > {
692- crate fn new ( tcx : & ' a TyCtxt < ' b > , hir_id : HirId , sp : Span ) -> ExtraInfo < ' a , ' b > {
691+ impl < ' tcx > ExtraInfo < ' tcx > {
692+ crate fn new ( tcx : TyCtxt < ' tcx > , hir_id : HirId , sp : Span ) -> ExtraInfo < ' tcx > {
693693 ExtraInfo { hir_id : Some ( hir_id) , item_did : None , sp, tcx }
694694 }
695695
696- crate fn new_did ( tcx : & ' a TyCtxt < ' b > , did : DefId , sp : Span ) -> ExtraInfo < ' a , ' b > {
696+ crate fn new_did ( tcx : TyCtxt < ' tcx > , did : DefId , sp : Span ) -> ExtraInfo < ' tcx > {
697697 ExtraInfo { hir_id : None , item_did : Some ( did) , sp, tcx }
698698 }
699699
@@ -775,7 +775,7 @@ impl LangString {
775775 string : & str ,
776776 allow_error_code_check : ErrorCodes ,
777777 enable_per_target_ignores : bool ,
778- extra : Option < & ExtraInfo < ' _ , ' _ > > ,
778+ extra : Option < & ExtraInfo < ' _ > > ,
779779 ) -> LangString {
780780 let allow_error_code_check = allow_error_code_check. as_bool ( ) ;
781781 let mut seen_rust_tags = false ;
@@ -1208,7 +1208,7 @@ crate struct RustCodeBlock {
12081208
12091209/// Returns a range of bytes for each code block in the markdown that is tagged as `rust` or
12101210/// untagged (and assumed to be rust).
1211- crate fn rust_code_blocks ( md : & str , extra_info : & ExtraInfo < ' _ , ' _ > ) -> Vec < RustCodeBlock > {
1211+ crate fn rust_code_blocks ( md : & str , extra_info : & ExtraInfo < ' _ > ) -> Vec < RustCodeBlock > {
12121212 let mut code_blocks = vec ! [ ] ;
12131213
12141214 if md. is_empty ( ) {
0 commit comments