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
|
@ -570,10 +570,6 @@ impl<'a> Parser<'a> {
|
|||
fn make_all_value_bindings_mutable(pat: &mut P<Pat>) -> bool {
|
||||
struct AddMut(bool);
|
||||
impl MutVisitor for AddMut {
|
||||
fn visit_mac(&mut self, mac: &mut MacCall) {
|
||||
noop_visit_mac(mac, self);
|
||||
}
|
||||
|
||||
fn visit_pat(&mut self, pat: &mut P<Pat>) {
|
||||
if let PatKind::Ident(BindingMode::ByValue(m @ Mutability::Not), ..) = &mut pat.kind
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue