about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2020-11-03 20:26:17 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2020-11-03 20:38:20 +0300
commit3237b3886c8d1bd19b78eda6040e2c55e5332a82 (patch)
tree4bcb710d6d3edbad6385025c985a5011a545bc8c /compiler/rustc_interface/src
parent0cd1516696550e108863bf4b4fb81ce5c4f58968 (diff)
downloadrust-3237b3886c8d1bd19b78eda6040e2c55e5332a82.tar.gz
rust-3237b3886c8d1bd19b78eda6040e2c55e5332a82.zip
rustc_ast: Do not panic by default when visiting macro calls
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/util.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/rustc_interface/src/util.rs b/compiler/rustc_interface/src/util.rs
index 46a6c5861d5..f406578f997 100644
--- a/compiler/rustc_interface/src/util.rs
+++ b/compiler/rustc_interface/src/util.rs
@@ -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)"