summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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() ) {