diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2020-11-03 20:26:17 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2020-11-03 20:38:20 +0300 |
| commit | 3237b3886c8d1bd19b78eda6040e2c55e5332a82 (patch) | |
| tree | 4bcb710d6d3edbad6385025c985a5011a545bc8c /compiler/rustc_parse/src | |
| parent | 0cd1516696550e108863bf4b4fb81ce5c4f58968 (diff) | |
| download | rust-3237b3886c8d1bd19b78eda6040e2c55e5332a82.tar.gz rust-3237b3886c8d1bd19b78eda6040e2c55e5332a82.zip | |
rustc_ast: Do not panic by default when visiting macro calls
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/parser/pat.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_parse/src/parser/pat.rs b/compiler/rustc_parse/src/parser/pat.rs index 196790a0ab3..c06b012d8c0 100644 --- a/compiler/rustc_parse/src/parser/pat.rs +++ b/compiler/rustc_parse/src/parser/pat.rs @@ -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 { |
