@@ -83,7 +83,7 @@ pub use need_type_info::TypeAnnotationNeeded;
8383
8484pub mod nice_region_error;
8585
86- pub ( super ) fn note_and_explain_region (
86+ pub ( super ) fn note_and_explain_region < ' tcx > (
8787 tcx : TyCtxt < ' tcx > ,
8888 err : & mut DiagnosticBuilder < ' _ > ,
8989 prefix : & str ,
@@ -116,7 +116,7 @@ pub(super) fn note_and_explain_region(
116116 emit_msg_span ( err, prefix, description, span, suffix) ;
117117}
118118
119- fn explain_free_region (
119+ fn explain_free_region < ' tcx > (
120120 tcx : TyCtxt < ' tcx > ,
121121 err : & mut DiagnosticBuilder < ' _ > ,
122122 prefix : & str ,
@@ -128,7 +128,7 @@ fn explain_free_region(
128128 label_msg_span ( err, prefix, description, span, suffix) ;
129129}
130130
131- fn msg_span_from_free_region (
131+ fn msg_span_from_free_region < ' tcx > (
132132 tcx : TyCtxt < ' tcx > ,
133133 region : ty:: Region < ' tcx > ,
134134 alt_span : Option < Span > ,
@@ -145,7 +145,7 @@ fn msg_span_from_free_region(
145145 }
146146}
147147
148- fn msg_span_from_early_bound_and_free_regions (
148+ fn msg_span_from_early_bound_and_free_regions < ' tcx > (
149149 tcx : TyCtxt < ' tcx > ,
150150 region : ty:: Region < ' tcx > ,
151151) -> ( String , Span ) {
@@ -226,7 +226,7 @@ fn label_msg_span(
226226 }
227227}
228228
229- pub fn unexpected_hidden_region_diagnostic (
229+ pub fn unexpected_hidden_region_diagnostic < ' tcx > (
230230 tcx : TyCtxt < ' tcx > ,
231231 span : Span ,
232232 hidden_ty : Ty < ' tcx > ,
@@ -316,7 +316,7 @@ pub fn unexpected_hidden_region_diagnostic(
316316/// with the other type. A TyVar inference type is compatible with any type, and an IntVar or
317317/// FloatVar inference type are compatible with themselves or their concrete types (Int and
318318/// Float types, respectively). When comparing two ADTs, these rules apply recursively.
319- pub fn same_type_modulo_infer ( a : Ty < ' tcx > , b : Ty < ' ctx > ) -> bool {
319+ pub fn same_type_modulo_infer < ' tcx > ( a : Ty < ' tcx > , b : Ty < ' tcx > ) -> bool {
320320 match ( & a. kind ( ) , & b. kind ( ) ) {
321321 ( & ty:: Adt ( did_a, substs_a) , & ty:: Adt ( did_b, substs_b) ) => {
322322 if did_a != did_b {
0 commit comments