diff options
| author | Pavan Kumar Sunkara <pavan.sss1991@gmail.com> | 2024-03-06 16:26:15 +0000 |
|---|---|---|
| committer | Pavan Kumar Sunkara <pavan.sss1991@gmail.com> | 2024-03-08 12:03:35 +0000 |
| commit | a838e44032d3b6dfe3314f763034e033b59477ad (patch) | |
| tree | 94277c8bae224f146be1d0509aefe43ef6e07826 | |
| parent | 00a012537219b351a49b6230e2a5e4661223d669 (diff) | |
| download | rust-a838e44032d3b6dfe3314f763034e033b59477ad.tar.gz rust-a838e44032d3b6dfe3314f763034e033b59477ad.zip | |
Remove unncessary check for macro call
| -rw-r--r-- | crates/parser/src/grammar/items.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/parser/src/grammar/items.rs b/crates/parser/src/grammar/items.rs index 243a219525a..fa1868486a0 100644 --- a/crates/parser/src/grammar/items.rs +++ b/crates/parser/src/grammar/items.rs @@ -70,8 +70,7 @@ pub(super) fn item_or_macro(p: &mut Parser<'_>, stop_on_r_curly: bool) { // macro_rules! {}; // macro_rules! () // macro_rules! [] - let no_ident = p.at_contextual_kw(T![macro_rules]) && p.nth_at(1, BANG) && !p.nth_at(2, IDENT); - if paths::is_use_path_start(p) || no_ident { + if paths::is_use_path_start(p) { macro_call(p, m); return; } |
