gcc/rust/ChangeLog:
* hir/rust-ast-lower-base.cc (ASTLoweringBase::visit): Add base implementation
for visitor.
namespace Rust {
namespace HIR {
+// We special case lowering macro invocations as that should NEVER happen
+void
+ASTLoweringBase::visit (AST::MacroInvocation &invoc)
+{
+ rust_fatal_error (invoc.get_locus (), "rogue macro detected during lowering");
+ rust_unreachable ();
+}
+
void
ASTLoweringBase::visit (AST::Token &)
{}
ASTLoweringBase::visit (AST::MacroRulesDefinition &)
{}
void
-ASTLoweringBase::visit (AST::MacroInvocation &)
-{}
-void
ASTLoweringBase::visit (AST::MetaItemPath &)
{}
void