diff options
| author | dswij <dswijj@gmail.com> | 2021-10-25 12:29:05 +0800 |
|---|---|---|
| committer | dswij <dswijj@gmail.com> | 2021-11-11 12:30:07 +0800 |
| commit | 2d037aa4a66edb601fb65fb3efdc573771cba3e2 (patch) | |
| tree | d7951f9baabccf11f9aa1299413fa629ef74c289 /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-abort.diff | |
| parent | 847a95b68283ee682eca9d01067ae9620d1bd296 (diff) | |
| download | rust-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
