about summary refs log tree commit diff
path: root/tests/ui/mem_replace.rs
AgeCommit message (Collapse)AuthorLines
2019-12-31Lint within internal macros without a suggestionKrishna Veera Reddy-14/+0
2019-12-31Prevent `mem_replace_with_default` lint within macrosKrishna Veera Reddy-0/+14
Also added test cases for internal and external macros.
2019-12-31Add test cases for replace with `Default::default()`Krishna Veera Reddy-0/+1
2019-12-31Use `mem::take` instead of `mem::replace` when applicableKrishna Veera Reddy-2/+19
`std::mem::take` can be used to replace a value of type `T` with `T::default()` instead of `std::mem::replace`.
2019-01-13Add run-rustfix to mem_replace testWilco Kusee-0/+2
2019-01-08Remove all copyright license headersPhilipp Hansch-1/+1
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
2018-12-09rustfmt testsMatthias Krüger-2/+0
2018-10-11Stabilize tool lintsOliver Scherer-1/+1
2018-10-06Add license header to Rust filesManish Goregaokar-0/+10
2018-09-19mem_replace: match on path.Jay Kickliter-0/+2
2018-09-19Add lint for `mem::replace(.., None)`.Jay Kickliter-0/+9
Suggest `Option::take()` as an alternative.