You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to point an error message at a function receiver. Parsing the code as a string, this seems to work fine. Parsing it from a TokenStream, in a proc_macro, the Span for the FnArg::Receiver appears to point to the first token of the receiver, rather than the whole thing:
See this repo for a repro.
I tried to point an error message at a function receiver. Parsing the code as a string, this seems to work fine. Parsing it from a
TokenStream
, in aproc_macro
, theSpan
for theFnArg::Receiver
appears to point to the first token of the receiver, rather than the whole thing:If I parse the same code from a
str
, I get the spans I expect (or at least, :The text was updated successfully, but these errors were encountered: