dtolnay / dtolnay/syn

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

Open
#621 1 comment 4 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
Rust
Stars
3.4k
Forks
374
Avg merge
1d 5h
Merged PRs (30d)
2

Description

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](https://docs.rs/proc-macro2/1.0.4/proc_macro2/struct.Literal.html#method.subspan).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.