diff options
author | John Hodge <tpg@mutabah.net> | 2018-05-20 15:02:17 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2018-05-20 15:02:17 +0800 |
commit | 1c50e757b45f64ead016d6cd2bf27585ba5dce04 (patch) | |
tree | b90d54a4698355112aa9204da15b5b7f7ff940d2 /src/ast/crate.cpp | |
parent | 7a4733c76c0391578fe04fde9cfa19698878c81e (diff) | |
download | mrust-1c50e757b45f64ead016d6cd2bf27585ba5dce04.tar.gz |
AST - Rename MetaItem and MetaItems to Attribute and AttributeList
Diffstat (limited to 'src/ast/crate.cpp')
-rw-r--r-- | src/ast/crate.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ast/crate.cpp b/src/ast/crate.cpp index 823f7d00..9e4ed2ad 100644 --- a/src/ast/crate.cpp +++ b/src/ast/crate.cpp @@ -12,10 +12,10 @@ ::std::map<::std::string, ::std::string> AST::g_crate_overrides; namespace { - bool check_item_cfg(const ::AST::MetaItems& attrs) + bool check_item_cfg(const ::AST::AttributeList& attrs) { for(const auto& at : attrs.m_items) { - if( at.name() == "cfg" && !check_cfg(attrs.m_span, at) ) { + if( at.name() == "cfg" && !check_cfg(at.span(), at) ) { return false; } } @@ -78,7 +78,7 @@ void Crate::load_externs() if( a.name() == "no_core" ) no_core = true; if( a.name() == "cfg_attr" && a.items().size() == 2 ) { - if( check_cfg(this->m_attrs.m_span, a.items().at(0)) ) + if( check_cfg(a.span(), a.items().at(0)) ) { const auto& a2 = a.items().at(1); if( a2.name() == "no_std" ) |