summaryrefslogtreecommitdiff
path: root/src/expand/test.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2019-10-06 15:21:42 +0800
committerJohn Hodge <tpg@ucc.asn.au>2019-10-06 15:21:42 +0800
commit16bd8829c108000e0d52d76329b88ab9e6a34e12 (patch)
tree12ebefa87f9c2b16f25dbc6988706383caff1bc1 /src/expand/test.cpp
parenta110ad4d5ea36b33ec4e0045513baf952f297f6f (diff)
downloadmrust-16bd8829c108000e0d52d76329b88ab9e6a34e12.tar.gz
Expand - Hand attributes to item attribute handlers
Diffstat (limited to 'src/expand/test.cpp')
-rw-r--r--src/expand/test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/expand/test.cpp b/src/expand/test.cpp
index cc7ddc83..eec1414d 100644
--- a/src/expand/test.cpp
+++ b/src/expand/test.cpp
@@ -14,7 +14,7 @@ class CTestHandler:
{
AttrStage stage() const override { return AttrStage::Post; }
- void handle(const Span& sp, const AST::Attribute& mi, ::AST::Crate& crate, const AST::Path& path, AST::Module& mod, AST::Item&i) const override {
+ void handle(const Span& sp, const AST::Attribute& mi, ::AST::Crate& crate, const AST::Path& path, AST::Module& mod, slice<const AST::Attribute> attrs, AST::Item&i) const override {
if( ! i.is_Function() ) {
ERROR(sp, E0000, "#[test] can only be put on functions - found on " << i.tag_str());
}
@@ -42,7 +42,7 @@ class CTestHandler_SP:
{
AttrStage stage() const override { return AttrStage::Post; }
- void handle(const Span& sp, const AST::Attribute& mi, ::AST::Crate& crate, const AST::Path& path, AST::Module& mod, AST::Item&i) const override {
+ void handle(const Span& sp, const AST::Attribute& mi, ::AST::Crate& crate, const AST::Path& path, AST::Module& mod, slice<const AST::Attribute> attrs, AST::Item&i) const override {
if( ! i.is_Function() ) {
ERROR(sp, E0000, "#[should_panic] can only be put on functions - found on " << i.tag_str());
}
@@ -76,7 +76,7 @@ class CTestHandler_Ignore:
{
AttrStage stage() const override { return AttrStage::Post; }
- void handle(const Span& sp, const AST::Attribute& mi, ::AST::Crate& crate, const AST::Path& path, AST::Module& mod, AST::Item&i) const override {
+ void handle(const Span& sp, const AST::Attribute& mi, ::AST::Crate& crate, const AST::Path& path, AST::Module& mod, slice<const AST::Attribute> attrs, AST::Item&i) const override {
if( ! i.is_Function() ) {
ERROR(sp, E0000, "#[ignore] can only be put on functions - found on " << i.tag_str());
}