From 93f81a5e8fb13fd08a39026555754bd0cbb43fd7 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Wed, 28 Sep 2016 18:00:07 +0800 Subject: Expand lang - Handle #[lang] on extern fn-s by ignoring them --- src/expand/lang_item.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/expand/lang_item.cpp') diff --git a/src/expand/lang_item.cpp b/src/expand/lang_item.cpp index f8aea8c3..7fcfedc9 100644 --- a/src/expand/lang_item.cpp +++ b/src/expand/lang_item.cpp @@ -87,7 +87,9 @@ void handle_lang_item(const Span& sp, AST::Crate& crate, const AST::Path& path, // Functions else if( name == "panic" ) { } else if( name == "panic_bounds_check" ) { } - else if( name == "panic_fmt" ) { } + else if( name == "panic_fmt" ) { + + } else if( name == "str_eq" ) { } // - builtin `box` support else if( name == "exchange_malloc" ) { } @@ -123,7 +125,12 @@ public: TODO(sp, "Unknown item type with #[lang=\""<