@@ -57,18 +57,18 @@ impl ConstMathErr {
57
57
UnequalTypes ( BitOr ) => "tried to bitor two values of different types" ,
58
58
UnequalTypes ( BitXor ) => "tried to xor two values of different types" ,
59
59
UnequalTypes ( _) => unreachable ! ( ) ,
60
- Overflow ( Add ) => "attempted to add with overflow" ,
61
- Overflow ( Sub ) => "attempted to subtract with overflow" ,
62
- Overflow ( Mul ) => "attempted to multiply with overflow" ,
63
- Overflow ( Div ) => "attempted to divide with overflow" ,
64
- Overflow ( Rem ) => "attempted to calculate the remainder with overflow" ,
65
- Overflow ( Neg ) => "attempted to negate with overflow" ,
66
- Overflow ( Shr ) => "attempted to shift right with overflow" ,
67
- Overflow ( Shl ) => "attempted to shift left with overflow" ,
60
+ Overflow ( Add ) => "attempt to add with overflow" ,
61
+ Overflow ( Sub ) => "attempt to subtract with overflow" ,
62
+ Overflow ( Mul ) => "attempt to multiply with overflow" ,
63
+ Overflow ( Div ) => "attempt to divide with overflow" ,
64
+ Overflow ( Rem ) => "attempt to calculate the remainder with overflow" ,
65
+ Overflow ( Neg ) => "attempt to negate with overflow" ,
66
+ Overflow ( Shr ) => "attempt to shift right with overflow" ,
67
+ Overflow ( Shl ) => "attempt to shift left with overflow" ,
68
68
Overflow ( _) => unreachable ! ( ) ,
69
- ShiftNegative => "attempted to shift by a negative amount" ,
70
- DivisionByZero => "attempted to divide by zero" ,
71
- RemainderByZero => "attempted to calculate the remainder with a divisor of zero" ,
69
+ ShiftNegative => "attempt to shift by a negative amount" ,
70
+ DivisionByZero => "attempt to divide by zero" ,
71
+ RemainderByZero => "attempt to calculate the remainder with a divisor of zero" ,
72
72
UnsignedNegation => "unary negation of unsigned integer" ,
73
73
ULitOutOfRange ( ast:: UintTy :: U8 ) => "literal out of range for u8" ,
74
74
ULitOutOfRange ( ast:: UintTy :: U16 ) => "literal out of range for u16" ,
0 commit comments