@@ -14,7 +14,7 @@ use ra_db::salsa::InternKey;
1414
1515use crate :: {
1616 db:: HirDatabase ,
17- primitive:: { FloatBitness , FloatTy , IntBitness , IntTy , Signedness , Uncertain } ,
17+ primitive:: { FloatBitness , FloatTy , IntBitness , IntTy , Signedness } ,
1818 traits:: { builtin, AssocTyValue , Canonical , Impl , Obligation } ,
1919 ApplicationTy , CallableDef , GenericPredicate , InEnvironment , OpaqueTy , OpaqueTyId ,
2020 ProjectionPredicate , ProjectionTy , Substs , TraitEnvironment , TraitRef , Ty , TypeCtor ,
@@ -249,11 +249,11 @@ impl ToChalk for TypeCtor {
249249
250250 TypeCtor :: Bool => TypeName :: Scalar ( Scalar :: Bool ) ,
251251 TypeCtor :: Char => TypeName :: Scalar ( Scalar :: Char ) ,
252- TypeCtor :: Int ( Uncertain :: Known ( int_ty) ) => TypeName :: Scalar ( int_ty_to_chalk ( int_ty) ) ,
253- TypeCtor :: Float ( Uncertain :: Known ( FloatTy { bitness : FloatBitness :: X32 } ) ) => {
252+ TypeCtor :: Int ( int_ty) => TypeName :: Scalar ( int_ty_to_chalk ( int_ty) ) ,
253+ TypeCtor :: Float ( FloatTy { bitness : FloatBitness :: X32 } ) => {
254254 TypeName :: Scalar ( Scalar :: Float ( chalk_ir:: FloatTy :: F32 ) )
255255 }
256- TypeCtor :: Float ( Uncertain :: Known ( FloatTy { bitness : FloatBitness :: X64 } ) ) => {
256+ TypeCtor :: Float ( FloatTy { bitness : FloatBitness :: X64 } ) => {
257257 TypeName :: Scalar ( Scalar :: Float ( chalk_ir:: FloatTy :: F64 ) )
258258 }
259259
@@ -268,9 +268,7 @@ impl ToChalk for TypeCtor {
268268 }
269269 TypeCtor :: Never => TypeName :: Never ,
270270
271- TypeCtor :: Int ( Uncertain :: Unknown )
272- | TypeCtor :: Float ( Uncertain :: Unknown )
273- | TypeCtor :: Adt ( _)
271+ TypeCtor :: Adt ( _)
274272 | TypeCtor :: Array
275273 | TypeCtor :: FnPtr { .. }
276274 | TypeCtor :: Closure { .. } => {
@@ -291,19 +289,19 @@ impl ToChalk for TypeCtor {
291289
292290 TypeName :: Scalar ( Scalar :: Bool ) => TypeCtor :: Bool ,
293291 TypeName :: Scalar ( Scalar :: Char ) => TypeCtor :: Char ,
294- TypeName :: Scalar ( Scalar :: Int ( int_ty) ) => TypeCtor :: Int ( Uncertain :: Known ( IntTy {
292+ TypeName :: Scalar ( Scalar :: Int ( int_ty) ) => TypeCtor :: Int ( IntTy {
295293 signedness : Signedness :: Signed ,
296294 bitness : bitness_from_chalk_int ( int_ty) ,
297- } ) ) ,
298- TypeName :: Scalar ( Scalar :: Uint ( uint_ty) ) => TypeCtor :: Int ( Uncertain :: Known ( IntTy {
295+ } ) ,
296+ TypeName :: Scalar ( Scalar :: Uint ( uint_ty) ) => TypeCtor :: Int ( IntTy {
299297 signedness : Signedness :: Unsigned ,
300298 bitness : bitness_from_chalk_uint ( uint_ty) ,
301- } ) ) ,
299+ } ) ,
302300 TypeName :: Scalar ( Scalar :: Float ( chalk_ir:: FloatTy :: F32 ) ) => {
303- TypeCtor :: Float ( Uncertain :: Known ( FloatTy { bitness : FloatBitness :: X32 } ) )
301+ TypeCtor :: Float ( FloatTy { bitness : FloatBitness :: X32 } )
304302 }
305303 TypeName :: Scalar ( Scalar :: Float ( chalk_ir:: FloatTy :: F64 ) ) => {
306- TypeCtor :: Float ( Uncertain :: Known ( FloatTy { bitness : FloatBitness :: X64 } ) )
304+ TypeCtor :: Float ( FloatTy { bitness : FloatBitness :: X64 } )
307305 }
308306 TypeName :: Tuple ( cardinality) => TypeCtor :: Tuple { cardinality : cardinality as u16 } ,
309307 TypeName :: Raw ( mutability) => TypeCtor :: RawPtr ( from_chalk ( db, mutability) ) ,
0 commit comments