mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
visit the paths in pre-expansion macros
This commit is contained in:
parent
38774aaf7f
commit
b1a9f9eae8
@ -1117,6 +1117,13 @@ impl<'a> ast_visit::Visitor<'a> for EarlyContext<'a> {
|
||||
}
|
||||
|
||||
fn visit_mac(&mut self, mac: &'a ast::Mac) {
|
||||
// FIXME(#54110): So, this setup isn't really right. I think
|
||||
// that (a) the libsyntax visitor ought to be doing this as
|
||||
// part of `walk_mac`, and (b) we should be calling
|
||||
// `visit_path`, *but* that would require a `NodeId`, and I
|
||||
// want to get #53686 fixed quickly. -nmatsakis
|
||||
ast_visit::walk_path(self, &mac.node.path);
|
||||
|
||||
run_lints!(self, check_mac, mac);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user