Bless tidy
This commit is contained in:
parent
8af42f695d
commit
904dd2c398
8 changed files with 11 additions and 11 deletions
|
@ -568,7 +568,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
BinOp::Shl | BinOp::Shr if self.check_overflow && ty.is_integral() => {
|
||||
// For an unsigned RHS, the shift is in-range for `rhs < bits`.
|
||||
// For a signed RHS, `IntToInt` cast to the equivalent unsigned
|
||||
// type and do that same comparison. Because the type is the
|
||||
// type and do that same comparison. Because the type is the
|
||||
// same size, there's no negative shift amount that ends up
|
||||
// overlapping with valid ones, thus it catches negatives too.
|
||||
let (lhs_size, _) = ty.int_size_and_signed(self.tcx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue