@@ -133,7 +133,7 @@ impl<CTX> crate::ty::HashStable<CTX> for ScalarInt {
133
133
// Using a block `{self.data}` here to force a copy instead of using `self.data`
134
134
// directly, because `hash_stable` takes `&self` and would thus borrow `self.data`.
135
135
// Since `Self` is a packed struct, that would create a possibly unaligned reference,
136
- // which is UB on a lot of platforms .
136
+ // which is UB.
137
137
{ self . data } . hash_stable ( hcx, hasher) ;
138
138
self . size . hash_stable ( hcx, hasher) ;
139
139
}
@@ -174,7 +174,7 @@ impl ScalarInt {
174
174
// directly, because `assert_eq` takes references to its arguments and formatting
175
175
// arguments and would thus borrow `self.data`. Since `Self`
176
176
// is a packed struct, that would create a possibly unaligned reference, which
177
- // is UB on a lot of platforms .
177
+ // is UB.
178
178
debug_assert_eq ! (
179
179
truncate( self . data, self . size( ) ) ,
180
180
{ self . data } ,
@@ -348,7 +348,7 @@ impl fmt::LowerHex for ScalarInt {
348
348
// directly, because `write!` takes references to its formatting arguments and
349
349
// would thus borrow `self.data`. Since `Self`
350
350
// is a packed struct, that would create a possibly unaligned reference, which
351
- // is UB on a lot of platforms .
351
+ // is UB.
352
352
write ! ( f, "{:01$x}" , { self . data } , self . size as usize * 2 )
353
353
}
354
354
}
@@ -362,7 +362,7 @@ impl fmt::UpperHex for ScalarInt {
362
362
// directly, because `write!` takes references to its formatting arguments and
363
363
// would thus borrow `self.data`. Since `Self`
364
364
// is a packed struct, that would create a possibly unaligned reference, which
365
- // is UB on a lot of platforms .
365
+ // is UB.
366
366
write ! ( f, "{:01$X}" , { self . data } , self . size as usize * 2 )
367
367
}
368
368
}
0 commit comments