mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-11 14:33:32 +00:00
d37da1e332
then we just suggest the first legal position where you could inject a use. To do this, I added `inject_use_span` field to `ModSpans`, and populate it in parser (it is the span of the first token found after inner attributes, if any). Then I rewrote the use-suggestion code to utilize it, and threw out some stuff that is now unnecessary with this in place. (I think the result is easier to understand.) Then I added a test of issue 87613. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |