about summary refs log tree commit diff
path: root/tests/ui/mem_replace.fixed
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/+21