mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +00:00
rustc_ast: Do not panic by default when visiting macro calls
This commit is contained in:
parent
8a18963f28
commit
89fa373059
1 changed files with 0 additions and 6 deletions
|
@ -149,9 +149,6 @@ impl<'a, 'tcx, 'b> Visitor<'tcx> for SimilarNamesNameVisitor<'a, 'tcx, 'b> {
|
|||
_ => walk_pat(self, pat),
|
||||
}
|
||||
}
|
||||
fn visit_mac(&mut self, _mac: &MacCall) {
|
||||
// do not check macs
|
||||
}
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
|
@ -356,9 +353,6 @@ impl<'a, 'tcx> Visitor<'tcx> for SimilarNamesLocalVisitor<'a, 'tcx> {
|
|||
fn visit_item(&mut self, _: &Item) {
|
||||
// do not recurse into inner items
|
||||
}
|
||||
fn visit_mac(&mut self, _mac: &MacCall) {
|
||||
// do not check macs
|
||||
}
|
||||
}
|
||||
|
||||
impl EarlyLintPass for NonExpressiveNames {
|
||||
|
|
Loading…
Reference in a new issue