@@ -620,7 +620,7 @@ crate fn find_testable_code<T: doctest::Tester>(
620
620
tests : & mut T ,
621
621
error_codes : ErrorCodes ,
622
622
enable_per_target_ignores : bool ,
623
- extra_info : Option < & ExtraInfo < ' _ , ' _ > > ,
623
+ extra_info : Option < & ExtraInfo < ' _ > > ,
624
624
) {
625
625
let mut parser = Parser :: new ( doc) . into_offset_iter ( ) ;
626
626
let mut prev_offset = 0 ;
@@ -681,19 +681,19 @@ crate fn find_testable_code<T: doctest::Tester>(
681
681
}
682
682
}
683
683
684
- crate struct ExtraInfo < ' a , ' b > {
684
+ crate struct ExtraInfo < ' tcx > {
685
685
hir_id : Option < HirId > ,
686
686
item_did : Option < DefId > ,
687
687
sp : Span ,
688
- tcx : & ' a TyCtxt < ' b > ,
688
+ tcx : TyCtxt < ' tcx > ,
689
689
}
690
690
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 > {
693
693
ExtraInfo { hir_id : Some ( hir_id) , item_did : None , sp, tcx }
694
694
}
695
695
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 > {
697
697
ExtraInfo { hir_id : None , item_did : Some ( did) , sp, tcx }
698
698
}
699
699
@@ -775,7 +775,7 @@ impl LangString {
775
775
string : & str ,
776
776
allow_error_code_check : ErrorCodes ,
777
777
enable_per_target_ignores : bool ,
778
- extra : Option < & ExtraInfo < ' _ , ' _ > > ,
778
+ extra : Option < & ExtraInfo < ' _ > > ,
779
779
) -> LangString {
780
780
let allow_error_code_check = allow_error_code_check. as_bool ( ) ;
781
781
let mut seen_rust_tags = false ;
@@ -1208,7 +1208,7 @@ crate struct RustCodeBlock {
1208
1208
1209
1209
/// Returns a range of bytes for each code block in the markdown that is tagged as `rust` or
1210
1210
/// 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 > {
1212
1212
let mut code_blocks = vec ! [ ] ;
1213
1213
1214
1214
if md. is_empty ( ) {
0 commit comments