]> git.lizzy.rs Git - rust.git/commit
Prevent `mem_replace_with_default` lint within macros
authorKrishna Veera Reddy <veerareddy@email.arizona.edu>
Sun, 8 Dec 2019 19:46:21 +0000 (11:46 -0800)
committerKrishna Veera Reddy <veerareddy@email.arizona.edu>
Tue, 31 Dec 2019 17:22:34 +0000 (09:22 -0800)
commit26812f733daaf65e514c058c51138511f6f5b60c
treed09811baa85be346a2c9c284c8e5d09605373caa
parent2a75241c1abc54c1becd7eff108160beef4490f8
Prevent `mem_replace_with_default` lint within macros

Also added test cases for internal and external macros.
clippy_lints/src/mem_replace.rs
tests/ui/auxiliary/macro_rules.rs
tests/ui/mem_replace.fixed
tests/ui/mem_replace.rs
tests/ui/mem_replace.stderr