@@ -1186,32 +1186,28 @@ impl BinaryOpKind {
11861186 | Self :: I32Sub
11871187 | Self :: I32Mul
11881188 | Self :: S32Div
1189- | Self :: U32Div
11901189 | Self :: S32Rem
1191- | Self :: U32Rem
11921190 | Self :: I32BitAnd
11931191 | Self :: I32BitOr
11941192 | Self :: I32BitXor
11951193 | Self :: I32Shl
11961194 | Self :: S32Shr
1197- | Self :: U32Shr
11981195 | Self :: I32Rotl
11991196 | Self :: I32Rotr => FieldTy :: I32 ,
1197+ | Self :: U32Div | Self :: U32Rem | Self :: U32Shr => FieldTy :: U32 ,
12001198 | Self :: I64Add
12011199 | Self :: I64Sub
12021200 | Self :: I64Mul
12031201 | Self :: S64Div
1204- | Self :: U64Div
12051202 | Self :: S64Rem
1206- | Self :: U64Rem
12071203 | Self :: I64BitAnd
12081204 | Self :: I64BitOr
12091205 | Self :: I64BitXor
12101206 | Self :: I64Shl
12111207 | Self :: S64Shr
1212- | Self :: U64Shr
12131208 | Self :: I64Rotl
12141209 | Self :: I64Rotr => FieldTy :: I64 ,
1210+ | Self :: U64Div | Self :: U64Rem | Self :: U64Shr => FieldTy :: U64 ,
12151211 | Self :: F32Add
12161212 | Self :: F32Sub
12171213 | Self :: F32Mul
@@ -1245,7 +1241,8 @@ impl BinaryOpKind {
12451241 | Self :: I32Shl | Self :: S32Shr | Self :: U32Shr | Self :: I32Rotl | Self :: I32Rotr => {
12461242 FieldTy :: U8
12471243 }
1248- | Self :: S32Div | Self :: U32Div | Self :: S32Rem | Self :: U32Rem => FieldTy :: NonZeroU32 ,
1244+ | Self :: S32Div | Self :: S32Rem => FieldTy :: NonZeroI32 ,
1245+ | Self :: U32Div | Self :: U32Rem => FieldTy :: NonZeroU32 ,
12491246 | Self :: I64Add
12501247 | Self :: I64Sub
12511248 | Self :: I64Mul
@@ -1255,7 +1252,8 @@ impl BinaryOpKind {
12551252 | Self :: I64Shl | Self :: S64Shr | Self :: U64Shr | Self :: I64Rotl | Self :: I64Rotr => {
12561253 FieldTy :: U8
12571254 }
1258- | Self :: S64Div | Self :: U64Div | Self :: S64Rem | Self :: U64Rem => FieldTy :: NonZeroU64 ,
1255+ | Self :: S64Div | Self :: S64Rem => FieldTy :: NonZeroI64 ,
1256+ | Self :: U64Div | Self :: U64Rem => FieldTy :: NonZeroU64 ,
12591257 | Self :: F32Add
12601258 | Self :: F32Sub
12611259 | Self :: F32Mul
@@ -1554,6 +1552,8 @@ pub enum FieldTy {
15541552 I64 ,
15551553 F32 ,
15561554 F64 ,
1555+ NonZeroI32 ,
1556+ NonZeroI64 ,
15571557 NonZeroU32 ,
15581558 NonZeroU64 ,
15591559 SignF32 ,
@@ -1597,6 +1597,8 @@ impl Display for FieldTy {
15971597 Self :: I64 => "i64" ,
15981598 Self :: F32 => "f32" ,
15991599 Self :: F64 => "f64" ,
1600+ Self :: NonZeroI32 => "NonZero<i32>" ,
1601+ Self :: NonZeroI64 => "NonZero<i64>" ,
16001602 Self :: NonZeroU32 => "NonZero<u32>" ,
16011603 Self :: NonZeroU64 => "NonZero<u64>" ,
16021604 Self :: SignF32 => "Sign<f32>" ,
0 commit comments