about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-01-04 08:09:43 +0000
committerbors <bors@rust-lang.org>2020-01-04 08:09:43 +0000
commitfa9b85d4df05291956e7957f6dc819925a90e7b9 (patch)
tree9ea255b4b45f5e223b5999c6b08dbcedf644e07e /src/test/incremental/thinlto
parent611bd898c036e5b990d07a1ab2b3475544e9f7e7 (diff)
parent42e4595d3ab7844d840ab4ef3fa8eb80116484f6 (diff)
downloadrust-fa9b85d4df05291956e7957f6dc819925a90e7b9.tar.gz
rust-fa9b85d4df05291956e7957f6dc819925a90e7b9.zip
Auto merge of #4881 - krishna-veerareddy:issue-4871-use-mem-take, r=flip1995
Use `mem::take` instead of `mem::replace` when applicable

`std::mem::take` can be used to replace a value of type `T` with `T::default()` instead of `std::mem::replace`.

Fixes issue #4871

changelog: Added lint for [`mem_replace_with_default`]
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions