Incorrect span when encountering incorrect opening delimiter in macro fragments #55322
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When writing a macro rule that tries to accept a
()
after apath
, we correctly inform the user that(
cannot come after apath
, but we point at the following character:This is probably an off-by-one error in the span assignment of the tokens.
The text was updated successfully, but these errors were encountered: