@@ -31,8 +31,8 @@ use rustc_middle::ty::cast::CastTy;
3131use rustc_middle:: ty:: fold:: TypeFoldable ;
3232use rustc_middle:: ty:: subst:: { GenericArgKind , SubstsRef , UserSubsts } ;
3333use rustc_middle:: ty:: {
34- self , CanonicalUserTypeAnnotation , CanonicalUserTypeAnnotations , OpaqueTypeKey , RegionVid ,
35- ToPredicate , Ty , TyCtxt , UserType , UserTypeAnnotationIndex ,
34+ self , CanonicalUserTypeAnnotation , CanonicalUserTypeAnnotations , OpaqueHiddenType ,
35+ OpaqueTypeKey , RegionVid , ToPredicate , Ty , TyCtxt , UserType , UserTypeAnnotationIndex ,
3636} ;
3737use rustc_span:: def_id:: CRATE_DEF_ID ;
3838use rustc_span:: { Span , DUMMY_SP } ;
@@ -225,21 +225,21 @@ pub(crate) fn type_check<'mir, 'tcx>(
225225 ) ,
226226 )
227227 . unwrap ( ) ;
228- let mut hidden_type = infcx. resolve_vars_if_possible ( decl. hidden_type . ty ) ;
228+ let mut hidden_type = infcx. resolve_vars_if_possible ( decl. hidden_type ) ;
229229 trace ! (
230230 "finalized opaque type {:?} to {:#?}" ,
231231 opaque_type_key,
232- hidden_type. kind( )
232+ hidden_type. ty . kind( )
233233 ) ;
234234 if hidden_type. has_infer_types_or_consts ( ) {
235235 infcx. tcx . sess . delay_span_bug (
236236 decl. hidden_type . span ,
237- & format ! ( "could not resolve {:#?}" , hidden_type. kind( ) ) ,
237+ & format ! ( "could not resolve {:#?}" , hidden_type. ty . kind( ) ) ,
238238 ) ;
239- hidden_type = infcx. tcx . ty_error ( ) ;
239+ hidden_type. ty = infcx. tcx . ty_error ( ) ;
240240 }
241241
242- ( opaque_type_key, ( hidden_type, decl. hidden_type . span , decl . origin ) )
242+ ( opaque_type_key, ( hidden_type, decl. origin ) )
243243 } )
244244 . collect ( )
245245 } ,
@@ -905,7 +905,7 @@ struct BorrowCheckContext<'a, 'tcx> {
905905crate struct MirTypeckResults < ' tcx > {
906906 crate constraints : MirTypeckRegionConstraints < ' tcx > ,
907907 crate universal_region_relations : Frozen < UniversalRegionRelations < ' tcx > > ,
908- crate opaque_type_values : VecMap < OpaqueTypeKey < ' tcx > , ( Ty < ' tcx > , Span , OpaqueTyOrigin ) > ,
908+ crate opaque_type_values : VecMap < OpaqueTypeKey < ' tcx > , ( OpaqueHiddenType < ' tcx > , OpaqueTyOrigin ) > ,
909909}
910910
911911/// A collection of region constraints that must be satisfied for the
0 commit comments