From 6256ad05bac1f708298f827fdfa7b54042961294 Mon Sep 17 00:00:00 2001 From: Michael Wright Date: Sat, 25 Aug 2018 22:35:06 +0200 Subject: [PATCH] fix-3078: verify test case Check the crash test case by commenting out the fix --- clippy_lints/src/non_expressive_names.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clippy_lints/src/non_expressive_names.rs b/clippy_lints/src/non_expressive_names.rs index daccc4bde..f92538cd0 100644 --- a/clippy_lints/src/non_expressive_names.rs +++ b/clippy_lints/src/non_expressive_names.rs @@ -114,9 +114,11 @@ impl<'a, 'tcx: 'a, 'b> Visitor<'tcx> for SimilarNamesNameVisitor<'a, 'tcx, 'b> { _ => walk_pat(self, pat), } } + /* fn visit_mac(&mut self, _mac: &Mac) { // do not check macs } + */ } fn get_whitelist(interned_name: &str) -> Option<&'static [&'static str]> {