From 16bd8829c108000e0d52d76329b88ab9e6a34e12 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 6 Oct 2019 15:21:42 +0800 Subject: Expand - Hand attributes to item attribute handlers --- src/expand/std_prelude.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/expand/std_prelude.cpp') 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 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 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 "") -- cgit v1.2.3