summaryrefslogtreecommitdiff
path: root/src/expand/test.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-12-25 17:35:00 +1100
committerJohn Hodge <tpg@mutabah.net>2016-12-25 17:35:00 +1100
commit69537686be13f6ff84ce79e84374351e943ab21b (patch)
treede4bef9b5ace623b59751447b9131046483d2388 /src/expand/test.cpp
parent27b0292ca6828eed7e782a57ad4d641f0ebf7357 (diff)
parent753a2f44cc4c00b952cddae2ceed066ebb18a470 (diff)
downloadmrust-69537686be13f6ff84ce79e84374351e943ab21b.tar.gz
Merge branch 'master' of https://github.com/thepowersgang/mrustc
Diffstat (limited to 'src/expand/test.cpp')
-rw-r--r--src/expand/test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expand/test.cpp b/src/expand/test.cpp
index ba18fd24..fba6556f 100644
--- a/src/expand/test.cpp
+++ b/src/expand/test.cpp
@@ -12,12 +12,12 @@ class CTestHandler:
public ExpandDecorator
{
AttrStage stage() const override { return AttrStage::Pre; }
-
+
void handle(const Span& sp, const AST::MetaItem& mi, ::AST::Crate& crate, const AST::Path& path, AST::Module& mod, AST::Item&i) const override {
if( ! i.is_Function() ) {
ERROR(sp, E0000, "#[test] can only be put on functions - found on " << i.tag_str());
}
-
+
// TODO: Proper #[test] support, for now just remove them
i = AST::Item::make_None({});
}