about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-abort.diff
diff options
context:
space:
mode:
authordswij <dswijj@gmail.com>2021-10-25 12:29:05 +0800
committerdswij <dswijj@gmail.com>2021-11-11 12:30:07 +0800
commit2d037aa4a66edb601fb65fb3efdc573771cba3e2 (patch)
treed7951f9baabccf11f9aa1299413fa629ef74c289 /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-abort.diff
parent847a95b68283ee682eca9d01067ae9620d1bd296 (diff)
downloadrust-2d037aa4a66edb601fb65fb3efdc573771cba3e2.tar.gz
rust-2d037aa4a66edb601fb65fb3efdc573771cba3e2.zip
Check for no_std and no_core attribute in `swap` lint
This commit adds a `no_std` and `no_core` check on `swap` lint and additionally suggest `core::mem::swap` whenever possible.
Remove warning if both `std` and `core` is not present.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-abort.diff')
0 files changed, 0 insertions, 0 deletions