diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2022-01-20 14:07:54 -0500 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2022-03-03 18:58:37 -0500 |
| commit | 651f46376aa6bb259c58cbb3debad6e0edce31bf (patch) | |
| tree | f3039ee6c0dce674c3826486e17faecf391ce931 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 74876ef4e9b29184787f6d8f3ba447e78def3a47 (diff) | |
| download | rust-651f46376aa6bb259c58cbb3debad6e0edce31bf.tar.gz rust-651f46376aa6bb259c58cbb3debad6e0edce31bf.zip | |
Adjusted diagnostic output so that if there is no `use` in a item sequence,
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
