@@ -19,7 +19,7 @@ use tracing::{debug, instrument};
1919
2020use super :: { Locations , TypeChecker } ;
2121use crate :: renumber:: RegionCtxt ;
22- use crate :: universal_regions:: { DefiningTy , UniversalRegions } ;
22+ use crate :: universal_regions:: DefiningTy ;
2323
2424impl < ' a , ' tcx > TypeChecker < ' a , ' tcx > {
2525 /// Check explicit closure signature annotation,
@@ -124,11 +124,10 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
124124 ) ;
125125 }
126126
127- #[ instrument( skip( self , body, universal_regions ) , level = "debug" ) ]
127+ #[ instrument( skip( self , body) , level = "debug" ) ]
128128 pub ( super ) fn equate_inputs_and_outputs (
129129 & mut self ,
130130 body : & Body < ' tcx > ,
131- universal_regions : & UniversalRegions < ' tcx > ,
132131 normalized_inputs_and_output : & [ Ty < ' tcx > ] ,
133132 ) {
134133 let ( & normalized_output_ty, normalized_input_tys) =
@@ -161,7 +160,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
161160 if let Some ( mir_yield_ty) = body. yield_ty ( ) {
162161 let yield_span = body. local_decls [ RETURN_PLACE ] . source_info . span ;
163162 self . equate_normalized_input_or_output (
164- universal_regions. yield_ty . unwrap ( ) ,
163+ self . universal_regions . yield_ty . unwrap ( ) ,
165164 mir_yield_ty,
166165 yield_span,
167166 ) ;
@@ -170,7 +169,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
170169 if let Some ( mir_resume_ty) = body. resume_ty ( ) {
171170 let yield_span = body. local_decls [ RETURN_PLACE ] . source_info . span ;
172171 self . equate_normalized_input_or_output (
173- universal_regions. resume_ty . unwrap ( ) ,
172+ self . universal_regions . resume_ty . unwrap ( ) ,
174173 mir_resume_ty,
175174 yield_span,
176175 ) ;
0 commit comments