diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-10-06 15:21:42 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-10-06 15:21:42 +0800 |
commit | 16bd8829c108000e0d52d76329b88ab9e6a34e12 (patch) | |
tree | 12ebefa87f9c2b16f25dbc6988706383caff1bc1 /src/expand/std_prelude.cpp | |
parent | a110ad4d5ea36b33ec4e0045513baf952f297f6f (diff) | |
download | mrust-16bd8829c108000e0d52d76329b88ab9e6a34e12.tar.gz |
Expand - Hand attributes to item attribute handlers
Diffstat (limited to 'src/expand/std_prelude.cpp')
-rw-r--r-- | src/expand/std_prelude.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expand/std_prelude.cpp b/src/expand/std_prelude.cpp index 52c1554c..58b56cf7 100644 --- a/src/expand/std_prelude.cpp +++ b/src/expand/std_prelude.cpp @@ -47,7 +47,7 @@ class Decorator_NoPrelude: public: AttrStage stage() const override { return AttrStage::Pre; } - 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_Module() ) { i.as_Module().m_insert_prelude = false; } @@ -63,7 +63,7 @@ class Decorator_PreludeImport: public: 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_Use() ) { const auto& p = i.as_Use().entries.front().path; // TODO: Ensure that this statement is a glob (has a name of "") |