diff options
author | John Hodge <tpg@mutabah.net> | 2016-10-23 15:26:53 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-10-23 15:26:53 +0800 |
commit | 2bf4e8bfeb83f135f9429256e301673c1a63ce09 (patch) | |
tree | 16b53658f313b9381620f3639802df895527f184 /src/expand/cfg.cpp | |
parent | dfec5021812ae61d56fc376f7556726d79c4d48e (diff) | |
download | mrust-2bf4e8bfeb83f135f9429256e301673c1a63ce09.tar.gz |
AST - Reduce places where there's no span information provided
Diffstat (limited to 'src/expand/cfg.cpp')
-rw-r--r-- | src/expand/cfg.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expand/cfg.cpp b/src/expand/cfg.cpp index 897c952a..0a4617cf 100644 --- a/src/expand/cfg.cpp +++ b/src/expand/cfg.cpp @@ -142,7 +142,7 @@ class CCfgHandler: // Leave } else { - impl.type() = ::TypeRef(); + impl.type() = ::TypeRef(sp); } } @@ -155,7 +155,7 @@ class CCfgHandler: void handle(const Span& sp, const AST::MetaItem& mi, AST::Crate& crate, ::AST::TupleItem& i) const override { DEBUG("#[cfg] tuple item - " << mi); if( !check_cfg(sp, mi) ) { - i.m_type = ::TypeRef(); + i.m_type = ::TypeRef(sp); } } void handle(const Span& sp, const AST::MetaItem& mi, AST::Crate& crate, ::AST::EnumVariant& i) const override { |