Wrong span in proc macro for part of joint op #47226
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-macros-1.2
Area: Declarative macros 1.2
A-macros-2.0
Area: Declarative macros 2.0 (#39412)
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I have the following proc macro called from the following crate. It is intended to display an error pointing to the first
>
of a>>
joint op. Instead the error points to the whole>>
pair of tokens.This makes it impossible to show correct error messages on something like
Option<Option<String>>
for example where you want the span to point out the innerOption<String>
, as reported in dtolnay/syn#296.Mentioning @antoyo who noticed this.
Mentioning @jseyfried @abonander who are involved with this code.
The text was updated successfully, but these errors were encountered: