rust/compiler/rustc_resolve/src
Felix S. Klock II d37da1e332 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.
2022-03-03 18:58:37 -05:00
..
late rename ErrorReported -> ErrorGuaranteed 2022-03-02 09:45:25 -06:00
access_levels.rs resolve/metadata: Stop encoding macros as reexports 2022-02-24 22:55:40 +03:00
build_reduced_graph.rs Auto merge of #93368 - eddyb:diagbld-guarantee, r=estebank 2022-02-25 00:46:04 +00:00
check_unused.rs suggest adding a #[cfg(test)] to test modules 2021-12-16 11:48:58 +09:00
def_collector.rs ast: Always keep a NodeId in ast::Crate 2022-01-05 17:09:37 +08:00
diagnostics.rs rename ErrorReported -> ErrorGuaranteed 2022-03-02 09:45:25 -06:00
imports.rs resolve/metadata: Stop encoding macros as reexports 2022-02-24 22:55:40 +03:00
late.rs rustc_errors: take self by value in DiagnosticBuilder::cancel. 2022-02-23 06:08:06 +00:00
lib.rs Adjusted diagnostic output so that if there is no use in a item sequence, 2022-03-03 18:58:37 -05:00
macros.rs resolve: Fix incorrect results of opt_def_kind query for some built-in macros 2022-02-24 22:54:36 +03:00