about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-02-16 16:12:19 +0000
committerbors <bors@rust-lang.org>2023-02-16 16:12:19 +0000
commitdfe23dc236a71e8c0dde4f3ccf4273108c61ef1f (patch)
tree4e7114cdedd4427253cdfa8fc480d43b8ede3d9d /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
parent52c8b536c954bc543290f36f2d90f3e75facaa0b (diff)
parent6d0df84f6f879feb2211f8f61351a4669d2397e0 (diff)
downloadrust-dfe23dc236a71e8c0dde4f3ccf4273108c61ef1f.tar.gz
rust-dfe23dc236a71e8c0dde4f3ccf4273108c61ef1f.zip
Auto merge of #10360 - JirkaVebr:transmute_integer_to_non_zero_wrapper, r=llogiq
Add the `transmute_int_to_non_zero` lint

Fixes #10288

This adds a new complexity lint `transmute_int_to_non_zero` which checks for transmutes to any of the `NonZero*` types, and suggests their `new_unchecked` method instead.

r? `@llogiq`

changelog: New lint: [`transmute_int_to_non_zero`]
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions