@@ -19,7 +19,7 @@ use tracing::{debug, instrument};
19
19
20
20
use super :: { Locations , TypeChecker } ;
21
21
use crate :: renumber:: RegionCtxt ;
22
- use crate :: universal_regions:: { DefiningTy , UniversalRegions } ;
22
+ use crate :: universal_regions:: DefiningTy ;
23
23
24
24
impl < ' a , ' tcx > TypeChecker < ' a , ' tcx > {
25
25
/// Check explicit closure signature annotation,
@@ -124,11 +124,10 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
124
124
) ;
125
125
}
126
126
127
- #[ instrument( skip( self , body, universal_regions ) , level = "debug" ) ]
127
+ #[ instrument( skip( self , body) , level = "debug" ) ]
128
128
pub ( super ) fn equate_inputs_and_outputs (
129
129
& mut self ,
130
130
body : & Body < ' tcx > ,
131
- universal_regions : & UniversalRegions < ' tcx > ,
132
131
normalized_inputs_and_output : & [ Ty < ' tcx > ] ,
133
132
) {
134
133
let ( & normalized_output_ty, normalized_input_tys) =
@@ -161,7 +160,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
161
160
if let Some ( mir_yield_ty) = body. yield_ty ( ) {
162
161
let yield_span = body. local_decls [ RETURN_PLACE ] . source_info . span ;
163
162
self . equate_normalized_input_or_output (
164
- universal_regions. yield_ty . unwrap ( ) ,
163
+ self . universal_regions . yield_ty . unwrap ( ) ,
165
164
mir_yield_ty,
166
165
yield_span,
167
166
) ;
@@ -170,7 +169,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
170
169
if let Some ( mir_resume_ty) = body. resume_ty ( ) {
171
170
let yield_span = body. local_decls [ RETURN_PLACE ] . source_info . span ;
172
171
self . equate_normalized_input_or_output (
173
- universal_regions. resume_ty . unwrap ( ) ,
172
+ self . universal_regions . resume_ty . unwrap ( ) ,
174
173
mir_resume_ty,
175
174
yield_span,
176
175
) ;
0 commit comments