diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-03-29 02:40:51 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-29 02:40:51 +0100 |
| commit | 0f4c87cffc73a95943b49c48ed5eedcef99c84c7 (patch) | |
| tree | fabc0a1c72c96e08ae0319d447c081f778ea7475 /src/libsyntax | |
| parent | 3df97f9da8e4a23772f5845bc641adae03e032be (diff) | |
| parent | c6e3ea475b9378fd551064e7b4e74ee96855337f (diff) | |
| download | rust-0f4c87cffc73a95943b49c48ed5eedcef99c84c7.tar.gz rust-0f4c87cffc73a95943b49c48ed5eedcef99c84c7.zip | |
Rollup merge of #59423 - varkor:walk_mac-visit_path, r=petrochenkov
Visit path in `walk_mac` Fixes https://github.com/rust-lang/rust/issues/54110.
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/visit.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/visit.rs b/src/libsyntax/visit.rs index 6b3a30ccb54..fbd6641f7c2 100644 --- a/src/libsyntax/visit.rs +++ b/src/libsyntax/visit.rs @@ -647,8 +647,8 @@ pub fn walk_stmt<'a, V: Visitor<'a>>(visitor: &mut V, statement: &'a Stmt) { } } -pub fn walk_mac<'a, V: Visitor<'a>>(_: &mut V, _: &Mac) { - // Empty! +pub fn walk_mac<'a, V: Visitor<'a>>(visitor: &mut V, mac: &'a Mac) { + visitor.visit_path(&mac.node.path, DUMMY_NODE_ID); } pub fn walk_anon_const<'a, V: Visitor<'a>>(visitor: &mut V, constant: &'a AnonConst) { |
