about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-06-06 23:54:27 +0000
committerbors <bors@rust-lang.org>2023-06-06 23:54:27 +0000
commitc8a056547b1b91ff3e5468d9331e8bcdcf837015 (patch)
tree8d16cc1bf60780c525b924e2b1f9aa0a247cf4a7 /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff
parentcc8ead2cce5a99ac8d4e963570c7eb6ed18f66b7 (diff)
parent7cd0ec58aa22bf84b7e452aa682d3694542a3399 (diff)
downloadrust-c8a056547b1b91ff3e5468d9331e8bcdcf837015.tar.gz
rust-c8a056547b1b91ff3e5468d9331e8bcdcf837015.zip
Auto merge of #10564 - asquared31415:cast_doesnt_wrap, r=giraffate
make cast_possible_wrap work correctly for 16 bit {u,i}size

These changes make `cast_possible_wrap` aware of the different pointer widths and fixes the implementation to print the correct pointer widths.

Fixes #9337

changelog: `cast_possible_wrap` does not lint on `u8 as isize` or `usize as i8`, since these can never wrap.
`cast_possible_wrap` now properly considers 16 bit pointer size and prints the correct bit widths.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions