rustc_ast: Do not panic by default when visiting macro calls
This commit is contained in:
parent
0cd1516696
commit
3237b3886c
16 changed files with 8 additions and 71 deletions
|
@ -881,12 +881,6 @@ impl<'a> MutVisitor for ReplaceBodyWithLoop<'a, '_> {
|
|||
})
|
||||
}
|
||||
}
|
||||
|
||||
// in general the pretty printer processes unexpanded code, so
|
||||
// we override the default `visit_mac` method which panics.
|
||||
fn visit_mac(&mut self, mac: &mut ast::MacCall) {
|
||||
noop_visit_mac(mac, self)
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns a version string such as "rustc 1.46.0 (04488afe3 2020-08-24)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue