diff options
author | John Hodge <tpg@mutabah.net> | 2016-09-27 20:58:40 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-09-27 20:58:40 +0800 |
commit | de98e50b73d17b78f0233d9d8cf2239a0a60c778 (patch) | |
tree | aaf09583dad9cf19a22c4b12037615445c20d625 /src | |
parent | bfa00193bf454668730d98c5d9ff12c016c32153 (diff) | |
download | mrust-de98e50b73d17b78f0233d9d8cf2239a0a60c778.tar.gz |
Expand - HACK: Allow multiple crate_type annotations (ignore the later ones?)
Diffstat (limited to 'src')
-rw-r--r-- | src/expand/crate_tags.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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"); |