diff options
| author | Caio <c410.f3r@gmail.com> | 2019-06-09 07:58:40 -0300 |
|---|---|---|
| committer | Caio <c410.f3r@gmail.com> | 2019-06-09 07:58:40 -0300 |
| commit | 1eaaf440d5173f090d6e937f4b4cffec6c038984 (patch) | |
| tree | 9f0beed7bc92e5815b4db44b8e32973678140fcc /src/libsyntax/ext/expand.rs | |
| parent | 5c45343f11fbf93cf4e15568aee3ff3f2f287466 (diff) | |
| download | rust-1eaaf440d5173f090d6e937f4b4cffec6c038984.tar.gz rust-1eaaf440d5173f090d6e937f4b4cffec6c038984.zip | |
Allow attributes in formal function parameters
Diffstat (limited to 'src/libsyntax/ext/expand.rs')
| -rw-r--r-- | src/libsyntax/ext/expand.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index 99605395553..671c01c53bb 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -1616,6 +1616,11 @@ impl<'a, 'b> MutVisitor for InvocationCollector<'a, 'b> { *id = self.cx.resolver.next_node_id() } } + + fn visit_fn_decl(&mut self, mut fn_decl: &mut P<ast::FnDecl>) { + self.cfg.configure_fn_decl(&mut fn_decl); + noop_visit_fn_decl(fn_decl, self); + } } pub struct ExpansionConfig<'feat> { |
