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
The FromStr impl has bizarre hygiene behavior because it was stabilized back in Rust 1.15.0. Instead we should have syn::parse_str do something more like LitStr::parse by respanning the input to a reasonable span, probably Span::call_site().
I believe the bizarreness is tracked in rust-lang/rust#50050 -- the spans produced by FromStr are intended to be "copy and paste hygiene" but are somehow not actually.
The FromStr impl has bizarre hygiene behavior because it was stabilized back in Rust 1.15.0. Instead we should have syn::parse_str do something more like LitStr::parse by respanning the input to a reasonable span, probably Span::call_site().
I believe the bizarreness is tracked in rust-lang/rust#50050 -- the spans produced by FromStr are intended to be "copy and paste hygiene" but are somehow not actually.
@alexcrichton
The text was updated successfully, but these errors were encountered: