1
Fork 0

rustc_ast: visit_mac -> visit_mac_call

This commit is contained in:
Vadim Petrochenkov 2020-11-03 20:34:57 +03:00
parent 3237b3886c
commit 90fafc8c8f
11 changed files with 24 additions and 25 deletions

View file

@ -358,7 +358,7 @@ fn find_type_parameters(
visit::walk_ty(self, ty)
}
fn visit_mac(&mut self, mac: &ast::MacCall) {
fn visit_mac_call(&mut self, mac: &ast::MacCall) {
self.cx.span_err(mac.span(), "`derive` cannot be used on items with type macros");
}
}