summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-10-21 10:38:21 +0800
committerJohn Hodge <tpg@mutabah.net>2016-10-21 10:38:21 +0800
commitd260219e365bd20300c1db7c9d984902eb20c253 (patch)
tree16024b19c5b584f3fe1225f06e2e0cf4dca4b2a5
parent4ed4da0a1ddab5dd56c24624f64cc44cb8d23430 (diff)
downloadmrust-d260219e365bd20300c1db7c9d984902eb20c253.tar.gz
Expand - Warn (don't error) when an attribute is seen in the wrong place
-rw-r--r--src/expand/mod.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expand/mod.cpp b/src/expand/mod.cpp
index fff44df3..755defa7 100644
--- a/src/expand/mod.cpp
+++ b/src/expand/mod.cpp
@@ -28,7 +28,7 @@ void Register_Synext_Macro(::std::string name, ::std::unique_ptr<ExpandProcMacro
void ExpandDecorator::unexpected(const Span& sp, const AST::MetaItem& mi, const char* loc_str) const
{
- ERROR(sp, E0000, "Unexpected attribute " << mi.name() << " on " << loc_str);
+ WARNING(sp, W0000, "Unexpected attribute " << mi.name() << " on " << loc_str);
}
void Expand_Attr(const Span& sp, const ::AST::MetaItem& a, AttrStage stage, ::std::function<void(const Span& sp, const ExpandDecorator& d,const ::AST::MetaItem& a)> f)