Remove the equality operation between Symbol
and strings.
And also the equality between `Path` and strings, because `Path` is made up of `Symbol`s.
This commit is contained in:
parent
fb084a48e2
commit
999c1fc281
49 changed files with 182 additions and 173 deletions
|
@ -5099,7 +5099,7 @@ impl<'a> Parser<'a> {
|
|||
|
||||
(ident, ast::MacroDef { tokens: tokens.into(), legacy: false })
|
||||
}
|
||||
token::Ident(ident, _) if ident.name == "macro_rules" &&
|
||||
token::Ident(ident, _) if ident.name == sym::macro_rules &&
|
||||
self.look_ahead(1, |t| *t == token::Not) => {
|
||||
let prev_span = self.prev_span;
|
||||
self.complain_if_pub_macro(&vis.node, prev_span);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue