Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expected PatTop (macro-error) with open X.. ranges in macros #17441

Closed
eduardosm opened this issue Jun 17, 2024 · 0 comments · Fixed by #17442
Closed

expected PatTop (macro-error) with open X.. ranges in macros #17441

eduardosm opened this issue Jun 17, 2024 · 0 comments · Fixed by #17442
Assignees
Labels
C-bug Category: bug

Comments

@eduardosm
Copy link

rust-analyzer version: 0.3.1995-standalone

rustc version: rustc 1.79.0 (129f3b996 2024-06-10)

editor or extension: VSCode v0.3.1995

code snippet to reproduce:

fn f(x: u32) -> bool {
    matches!(x, 0..)
}

The macro call will be marked with error "expected PatTop", but rustc will compile it fine.

@eduardosm eduardosm added the C-bug Category: bug label Jun 17, 2024
@Veykril Veykril self-assigned this Jun 17, 2024
@bors bors closed this as completed in 53be113 Jun 17, 2024
lnicola pushed a commit to lnicola/rust that referenced this issue Jun 23, 2024
fix: Fix pat fragment parsers choking on <eoi>

Fixes rust-lang/rust-analyzer#17441
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants