summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-10-10 22:39:06 +0800
committerJohn Hodge <tpg@mutabah.net>2016-10-10 22:39:06 +0800
commitd40ad9f5235e283b3b85c911ae254d3d2ddc886a (patch)
tree6e929056d4e41dd3855fa1e9b89e854b2a603f84
parentee935476fe7a920e73700b4a3d87354919f2a4e7 (diff)
downloadmrust-d40ad9f5235e283b3b85c911ae254d3d2ddc886a.tar.gz
Expand - #[lang] eh_personality and handle None items
-rw-r--r--src/expand/lang_item.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/expand/lang_item.cpp b/src/expand/lang_item.cpp
index 7fcfedc9..1e3564c2 100644
--- a/src/expand/lang_item.cpp
+++ b/src/expand/lang_item.cpp
@@ -99,6 +99,8 @@ void handle_lang_item(const Span& sp, AST::Crate& crate, const AST::Path& path,
// - start
else if( name == "start" ) { }
+ else if( name == "eh_personality" ) { }
+
else {
ERROR(sp, E0000, "Unknown language item '" << name << "'");
}
@@ -122,7 +124,10 @@ public:
{
TU_MATCH_DEF(::AST::Item, (i), (e),
(
- TODO(sp, "Unknown item type with #[lang=\""<<attr<<"\"] attached at " << path);
+ TODO(sp, "Unknown item type " << i.tag_str() << " with #["<<attr<<"] attached at " << path);
+ ),
+ (None,
+ // NOTE: Can happen when #[cfg] removed this
),
(Function,
if( e.code().is_valid() ) {