syn
syn copied to clipboard
Use Literal::subspan to produce better spans from LitStr::parse
LitStr::parse currently puts the entire input string's span on every output token. It would be better to try producing smaller spans using Literal::subspan.
I have a suspicion that TedDriggs/darling#120 is somehow related to this, but the symptoms are different.
impl FromMeta for syn::Path
is using LitStr::parse
here, but when testing this in colin-kiegel/rust-derive-builder#194 breaking the example by commenting out the conversion leads to the error only showing on the last quotation mark.
Is there a good way for me to test this in more detail?