Remove mir::CastKind::Misc

This commit is contained in:
ouz-a 2022-10-04 21:39:43 +03:00
parent 02cd79afb8
commit d59c7ff000
25 changed files with 190 additions and 57 deletions

View file

@ -1149,8 +1149,12 @@ pub enum CastKind {
Pointer(PointerCast),
/// Cast into a dyn* object.
DynStar,
/// Remaining unclassified casts.
Misc,
IntToInt,
FloatToInt,
FloatToFloat,
IntToFloat,
PtrToPtr,
FnPtrToPtr,
}
#[derive(Clone, Debug, PartialEq, Eq, TyEncodable, TyDecodable, Hash, HashStable)]