rust/tests/ui/rust-2018
Esteban Küber 5de8e6edfc Tweak output of import suggestions
When both `std::` and `core::` items are available, only suggest the
`std::` ones. We ensure that in `no_std` crates we suggest `core::`
items.

Ensure that the list of items suggested to be imported are always in the
order of local crate items, `std`/`core` items and finally foreign crate
items.

Tweak wording of import suggestion: if there are multiple items but they
are all of the same kind, we use the kind name and not the generic "items".

Fix #83564.
2024-06-13 20:22:21 +00:00
..
auxiliary
uniform-paths
async-ident-allowed.rs
async-ident-allowed.stderr
async-ident.fixed Make sure we don't deny macro vars w keyword names 2024-05-07 19:13:33 -04:00
async-ident.rs Make sure we don't deny macro vars w keyword names 2024-05-07 19:13:33 -04:00
async-ident.stderr Make sure we don't deny macro vars w keyword names 2024-05-07 19:13:33 -04:00
dyn-keyword.fixed
dyn-keyword.rs
dyn-keyword.stderr
dyn-trait-compatibility.rs
dyn-trait-compatibility.stderr
edition-lint-fully-qualified-paths.fixed
edition-lint-fully-qualified-paths.rs
edition-lint-fully-qualified-paths.stderr
edition-lint-infer-outlives-macro.fixed
edition-lint-infer-outlives-macro.rs
edition-lint-infer-outlives-macro.stderr
edition-lint-infer-outlives-multispan.rs
edition-lint-infer-outlives-multispan.stderr
edition-lint-infer-outlives.fixed
edition-lint-infer-outlives.rs
edition-lint-infer-outlives.stderr
edition-lint-nested-empty-paths.fixed
edition-lint-nested-empty-paths.rs
edition-lint-nested-empty-paths.stderr
edition-lint-nested-paths.fixed
edition-lint-nested-paths.rs
edition-lint-nested-paths.stderr
edition-lint-paths-2018.rs
edition-lint-paths.fixed
edition-lint-paths.rs
edition-lint-paths.stderr
edition-lint-uninferable-outlives.rs
extern-crate-idiomatic-in-2018.fixed
extern-crate-idiomatic-in-2018.rs
extern-crate-idiomatic-in-2018.stderr
extern-crate-idiomatic.fixed
extern-crate-idiomatic.rs
extern-crate-referenced-by-self-path.fixed
extern-crate-referenced-by-self-path.rs
extern-crate-rename.fixed
extern-crate-rename.rs
extern-crate-rename.stderr
extern-crate-submod.fixed
extern-crate-submod.rs
extern-crate-submod.stderr
future-proofing-locals.rs
future-proofing-locals.stderr
issue-51008-1.rs
issue-51008.rs
issue-52202-use-suggestions.rs
issue-52202-use-suggestions.stderr Tweak output of import suggestions 2024-06-13 20:22:21 +00:00
issue-54006.rs
issue-54006.stderr
issue-54400-unused-extern-crate-attr-span.fixed
issue-54400-unused-extern-crate-attr-span.rs
issue-54400-unused-extern-crate-attr-span.stderr
local-path-suggestions-2015.rs
local-path-suggestions-2015.stderr
local-path-suggestions-2018.rs
local-path-suggestions-2018.stderr
macro-use-warned-against.rs Spruce up the diagnostics of some early lints 2024-06-03 07:25:32 +02:00
macro-use-warned-against.stderr Spruce up the diagnostics of some early lints 2024-06-03 07:25:32 +02:00
proc-macro-crate-in-paths.rs
remove-extern-crate.fixed
remove-extern-crate.rs
remove-extern-crate.stderr
suggestions-not-always-applicable.fixed
suggestions-not-always-applicable.rs
trait-import-suggestions.rs
trait-import-suggestions.stderr
try-ident.fixed
try-ident.rs
try-ident.stderr
try-macro.fixed
try-macro.rs
try-macro.stderr
unresolved-asterisk-imports.rs
unresolved-asterisk-imports.stderr