diff options
| author | bors <bors@rust-lang.org> | 2020-06-23 05:14:21 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-06-23 05:14:21 +0000 |
| commit | c56c7e2d02920a8ec2dcb67c5f18d589af7ceb1c (patch) | |
| tree | efe8958afa6ab59770472c3fd139b2e468324d77 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | fa0f6a8dbf049cbae679dc82d653371c5a8c0be4 (diff) | |
| parent | 8c1ee063bb67b20ac17603d0f0025b48b958cc08 (diff) | |
| download | rust-c56c7e2d02920a8ec2dcb67c5f18d589af7ceb1c.tar.gz rust-c56c7e2d02920a8ec2dcb67c5f18d589af7ceb1c.zip | |
Auto merge of #5695 - esamudera:lint_mem_uninitialized, r=phansch,oli-obk
New lint: suggest `ptr::read` instead of `mem::replace(..., uninitialized())` resolves: #5575 changelog: improvements to `MEM_REPLACE_WITH_UNINIT`: - add a new test case in `tests/ui/repl_uninit.rs` to cover the case of replacing with `mem::MaybeUninit::uninit().assume_init()`. - modify the existing `MEM_REPLACE_WITH_UNINIT` when replacing with `mem::uninitialized` to suggest using `ptr::read` instead. - lint with `MEM_REPLACE_WITH_UNINIT` when replacing with `mem::MaybeUninit::uninit().assume_init()`
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
