Incorrect diagnostic "pattern requires ..
due to inaccessible fields" when matching in a macro
#130588
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-hygiene
Area: Macro hygiene
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
It seems this error message gets generated whenever an incomplete pattern shows up within a macro invocation, whether or not the fields are actually inaccessible.
Other cases
No response
Rust Version
rustc 1.83.0-nightly (f79a912 2024-09-18)
binary: rustc
commit-hash: f79a912
commit-date: 2024-09-18
host: x86_64-unknown-linux-gnu
release: 1.83.0-nightly
LLVM version: 19.1.0
Anything else?
No response
The text was updated successfully, but these errors were encountered: