dtolnay/syn

Use Literal::subspan to produce better spans from LitStr::parse

Aperta

#621 aperta il 15 apr 2019

 (1 commento) (4 reazioni) (0 assegnatari)Rust (373 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (3409 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor