diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-01-05 21:40:36 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-01-05 21:40:36 +0800 |
commit | 6d0fe344e94670f2ac0e21094238181f38b0daec (patch) | |
tree | 27557c1d304bc1e39bccd1a0c4d70979680dfc0b | |
parent | 20ae8946a614f93cd8b1d1f9315a4478de2c867f (diff) | |
download | mrust-6d0fe344e94670f2ac0e21094238181f38b0daec.tar.gz |
Handle MacroInv in some more places
-rw-r--r-- | src/hir/from_ast.cpp | 3 | ||||
-rw-r--r-- | src/resolve/absolute.cpp | 4 |
2 files changed, 6 insertions, 1 deletions
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());), |