summaryrefslogtreecommitdiff
path: root/src/hir/from_ast.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-10-13 10:32:16 +0800
committerJohn Hodge <tpg@mutabah.net>2016-10-13 10:32:16 +0800
commitde42f69f08ad867dbafa9883f2a85d5d2004a004 (patch)
tree87e748a01f23fe65d070e1a0d69014a89242d9e9 /src/hir/from_ast.cpp
parent1cd222f5381cf180634ee1846c6741472fce7644 (diff)
downloadmrust-de42f69f08ad867dbafa9883f2a85d5d2004a004.tar.gz
AST - Handle associated statics
Diffstat (limited to 'src/hir/from_ast.cpp')
-rw-r--r--src/hir/from_ast.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp
index a6550b07..4c6921ac 100644
--- a/src/hir/from_ast.cpp
+++ b/src/hir/from_ast.cpp
@@ -1176,7 +1176,7 @@ void LowerHIR_Module_Impls(const ::AST::Module& ast_mod, ::HIR::Crate& hir_crat
::HIR::ItemPath item_path(path, item.name.c_str());
TU_MATCH_DEF(::AST::Item, (*item.data), (e),
(
- ERROR(item.data->span, E0000, "Unexpected item type in trait impl");
+ BUG(item.data->span, "Unexpected item type in trait impl - " << item.data->tag_str());
),
(None,
),
@@ -1235,7 +1235,7 @@ void LowerHIR_Module_Impls(const ::AST::Module& ast_mod, ::HIR::Crate& hir_crat
::HIR::ItemPath item_path(path, item.name.c_str());
TU_MATCH_DEF(::AST::Item, (*item.data), (e),
(
- ERROR(item.data->span, E0000, "Unexpected item type in inherent impl");
+ BUG(item.data->span, "Unexpected item type in inherent impl - " << item.data->tag_str());
),
(None,
),