bors
c56c7e2d02
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()`
2020-06-23 05:14:21 +00:00
..
2020-06-08 16:00:33 -04:00
2020-05-13 20:47:44 +02:00
2020-06-09 14:36:01 +00:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-11 20:23:47 +02:00
2020-06-10 01:35:47 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-05-28 15:45:24 +02:00
2020-05-28 15:45:24 +02:00
2020-05-17 17:36:26 +02:00
2020-05-28 15:45:24 +02:00
2020-05-28 15:45:24 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-11 20:23:47 +02:00
2020-05-28 15:45:24 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-06-09 23:49:21 +02:00
2020-05-17 17:36:26 +02:00
2020-06-10 01:35:47 +00:00
2020-06-10 01:35:47 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 16:39:31 -04:00
2020-06-09 16:39:31 -04:00
2020-06-09 16:39:31 -04:00
2020-05-11 20:23:47 +02:00
2020-05-11 20:23:47 +02:00
2020-05-11 20:23:47 +02:00
2020-05-17 17:36:26 +02:00
2020-05-11 20:23:47 +02:00
2020-05-11 20:23:47 +02:00
2020-05-11 20:23:47 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-11 20:23:47 +02:00
2020-05-28 15:45:24 +02:00
2020-05-28 15:45:24 +02:00
2020-05-28 15:45:24 +02:00
2020-05-28 15:45:24 +02:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-05-28 15:45:24 +02:00
2020-05-28 15:45:24 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-28 15:45:24 +02:00
2020-05-28 15:45:24 +02:00
2020-06-09 14:36:01 +00:00
2020-05-28 15:45:24 +02:00
2020-06-09 14:36:01 +00:00
2020-05-28 15:45:24 +02:00
2020-05-28 15:45:24 +02:00
2020-05-28 15:45:24 +02:00
2020-05-28 15:45:24 +02:00
2020-06-17 01:26:37 +07:00
2020-06-17 01:26:37 +07:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-04-29 22:40:57 +03:00
2020-04-29 22:40:57 +03:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-04-27 21:29:31 +02:00
2020-04-27 21:29:31 +02:00
2020-05-28 15:45:24 +02:00
2020-05-28 15:45:24 +02:00
2020-05-17 17:36:26 +02:00
2020-05-17 17:36:26 +02:00
2020-05-28 15:45:24 +02:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-05-11 20:23:47 +02:00
2020-05-11 20:23:47 +02:00
2020-05-11 20:23:47 +02:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-06-09 14:36:01 +00:00
2020-05-11 20:23:47 +02:00
2020-05-11 20:23:47 +02:00
2020-05-11 20:23:47 +02:00