From de98e50b73d17b78f0233d9d8cf2239a0a60c778 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Tue, 27 Sep 2016 20:58:40 +0800 Subject: Expand - HACK: Allow multiple crate_type annotations (ignore the later ones?) --- src/expand/crate_tags.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/expand/crate_tags.cpp b/src/expand/crate_tags.cpp index 66ad01d4..ace7f3e7 100644 --- a/src/expand/crate_tags.cpp +++ b/src/expand/crate_tags.cpp @@ -16,7 +16,8 @@ public: void handle(const Span& sp, const AST::MetaItem& mi, AST::Crate& crate) const override { if( crate.m_crate_type != AST::Crate::Type::Unknown ) { - ERROR(sp, E0000, "Multiple #![crate_type] attributes"); + //ERROR(sp, E0000, "Multiple #![crate_type] attributes"); + return ; } if( !mi.has_string() ) { ERROR(sp, E0000, "#![crate_type] requires a string argument"); -- cgit v1.2.3