Skip to content

Commit 89fa373

Browse files
committed
rustc_ast: Do not panic by default when visiting macro calls
1 parent 8a18963 commit 89fa373

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

clippy_lints/src/non_expressive_names.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,6 @@ impl<'a, 'tcx, 'b> Visitor<'tcx> for SimilarNamesNameVisitor<'a, 'tcx, 'b> {
149149
_ => walk_pat(self, pat),
150150
}
151151
}
152-
fn visit_mac(&mut self, _mac: &MacCall) {
153-
// do not check macs
154-
}
155152
}
156153

157154
#[must_use]
@@ -356,9 +353,6 @@ impl<'a, 'tcx> Visitor<'tcx> for SimilarNamesLocalVisitor<'a, 'tcx> {
356353
fn visit_item(&mut self, _: &Item) {
357354
// do not recurse into inner items
358355
}
359-
fn visit_mac(&mut self, _mac: &MacCall) {
360-
// do not check macs
361-
}
362356
}
363357

364358
impl EarlyLintPass for NonExpressiveNames {

0 commit comments

Comments
 (0)