mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Remove unncessary check for macro call
This commit is contained in:
parent
00a0125372
commit
a838e44032
1 changed files with 1 additions and 2 deletions
|
@ -70,8 +70,7 @@ pub(super) fn item_or_macro(p: &mut Parser<'_>, stop_on_r_curly: bool) {
|
||||||
// macro_rules! {};
|
// macro_rules! {};
|
||||||
// macro_rules! ()
|
// 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) {
|
||||||
if paths::is_use_path_start(p) || no_ident {
|
|
||||||
macro_call(p, m);
|
macro_call(p, m);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue