@@ -8,6 +8,7 @@ use rustc_middle::ty::adjustment::PointerCast;
88use rustc_middle:: ty:: layout:: { IntegerExt , LayoutOf , TyAndLayout } ;
99use rustc_middle:: ty:: { self , FloatTy , Ty , TypeAndMut } ;
1010use rustc_target:: abi:: { Integer , Variants } ;
11+ use rustc_type_ir:: sty:: TyKind :: * ;
1112
1213use super :: {
1314 util:: ensure_monomorphic_enough, FnVal , ImmTy , Immediate , InterpCx , Machine , OpTy , PlaceTy ,
@@ -102,7 +103,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
102103 src : & ImmTy < ' tcx , M :: PointerTag > ,
103104 cast_ty : Ty < ' tcx > ,
104105 ) -> InterpResult < ' tcx , Immediate < M :: PointerTag > > {
105- use rustc_middle :: ty :: TyKind :: * ;
106+ use rustc_type_ir :: sty :: TyKind :: * ;
106107 trace ! ( "Casting {:?}: {:?} to {:?}" , * src, src. layout. ty, cast_ty) ;
107108
108109 match src. layout . ty . kind ( ) {
@@ -205,7 +206,6 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
205206 let v = scalar. to_bits ( src_layout. size ) ?;
206207 let v = if signed { self . sign_extend ( v, src_layout) } else { v } ;
207208 trace ! ( "cast_from_scalar: {}, {} -> {}" , v, src_layout. ty, cast_ty) ;
208- use rustc_middle:: ty:: TyKind :: * ;
209209
210210 Ok ( match * cast_ty. kind ( ) {
211211 Int ( _) | Uint ( _) => {
@@ -247,7 +247,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
247247 where
248248 F : Float + Into < Scalar < M :: PointerTag > > + FloatConvert < Single > + FloatConvert < Double > ,
249249 {
250- use rustc_middle :: ty :: TyKind :: * ;
250+ use rustc_type_ir :: sty :: TyKind :: * ;
251251 match * dest_ty. kind ( ) {
252252 // float -> uint
253253 Uint ( t) => {
0 commit comments