From 6d0fe344e94670f2ac0e21094238181f38b0daec Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 5 Jan 2019 21:40:36 +0800 Subject: Handle MacroInv in some more places --- src/hir/from_ast.cpp | 3 +++ src/resolve/absolute.cpp | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp index 49e5a4b6..32561a76 100644 --- a/src/hir/from_ast.cpp +++ b/src/hir/from_ast.cpp @@ -1155,6 +1155,9 @@ namespace { (None, // Ignore. ), + (MacroInv, + // Ignore. + ), (Type, bool is_sized = true; ::std::vector< ::HIR::TraitPath> trait_bounds; diff --git a/src/resolve/absolute.cpp b/src/resolve/absolute.cpp index 7fa08aaf..d4147e92 100644 --- a/src/resolve/absolute.cpp +++ b/src/resolve/absolute.cpp @@ -1933,7 +1933,9 @@ void Resolve_Absolute_ImplItems(Context& item_context, ::AST::NamedList< ::AST: { TU_MATCH(AST::Item, (i.data), (e), (None, ), - (MacroInv, BUG(i.data.span, "Resolve_Absolute_ImplItems - MacroInv");), + (MacroInv, + //BUG(i.data.span, "Resolve_Absolute_ImplItems - MacroInv"); + ), (ExternBlock, BUG(i.data.span, "Resolve_Absolute_ImplItems - " << i.data.tag_str());), (Impl, BUG(i.data.span, "Resolve_Absolute_ImplItems - " << i.data.tag_str());), (NegImpl, BUG(i.data.span, "Resolve_Absolute_ImplItems - " << i.data.tag_str());), -- cgit v1.2.3