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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
uniform-paths Detect unused struct impls pub trait 2024-03-10 23:30:53 +08:00
async-ident-allowed.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
async-ident-allowed.stderr Deny gen keyword in edition_2024_compat lints 2024-04-22 11:51:50 -04:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
dyn-keyword.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
dyn-keyword.stderr Deny gen keyword in edition_2024_compat lints 2024-04-22 11:51:50 -04:00
dyn-trait-compatibility.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
dyn-trait-compatibility.stderr
edition-lint-fully-qualified-paths.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
edition-lint-fully-qualified-paths.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
edition-lint-fully-qualified-paths.stderr Remove edition umbrella features. 2023-12-10 13:03:28 -08:00
edition-lint-infer-outlives-macro.fixed macro_rules: Preserve all metavariable spans in a global side table 2024-02-18 11:19:24 +03:00
edition-lint-infer-outlives-macro.rs macro_rules: Preserve all metavariable spans in a global side table 2024-02-18 11:19:24 +03:00
edition-lint-infer-outlives-macro.stderr macro_rules: Preserve all metavariable spans in a global side table 2024-02-18 11:19:24 +03:00
edition-lint-infer-outlives-multispan.rs
edition-lint-infer-outlives-multispan.stderr
edition-lint-infer-outlives.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
edition-lint-infer-outlives.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
edition-lint-infer-outlives.stderr
edition-lint-nested-empty-paths.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
edition-lint-nested-empty-paths.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
edition-lint-nested-empty-paths.stderr Remove edition umbrella features. 2023-12-10 13:03:28 -08:00
edition-lint-nested-paths.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
edition-lint-nested-paths.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
edition-lint-nested-paths.stderr Remove edition umbrella features. 2023-12-10 13:03:28 -08:00
edition-lint-paths-2018.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
edition-lint-paths.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
edition-lint-paths.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
edition-lint-paths.stderr Remove edition umbrella features. 2023-12-10 13:03:28 -08:00
edition-lint-uninferable-outlives.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
extern-crate-idiomatic-in-2018.fixed If suggestion would leave an empty line, delete it 2024-03-01 13:48:20 +00:00
extern-crate-idiomatic-in-2018.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
extern-crate-idiomatic-in-2018.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
extern-crate-idiomatic.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
extern-crate-idiomatic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
extern-crate-referenced-by-self-path.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
extern-crate-referenced-by-self-path.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
extern-crate-rename.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
extern-crate-rename.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
extern-crate-rename.stderr Remove edition umbrella features. 2023-12-10 13:03:28 -08:00
extern-crate-submod.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
extern-crate-submod.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
extern-crate-submod.stderr Remove edition umbrella features. 2023-12-10 13:03:28 -08:00
future-proofing-locals.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
future-proofing-locals.stderr
issue-51008-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-51008.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-52202-use-suggestions.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-52202-use-suggestions.stderr Tweak output of import suggestions 2024-06-13 20:22:21 +00:00
issue-54006.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-54006.stderr Supress unhelpful diagnostics for unresolved top level attributes 2024-01-29 17:43:07 +08:00
issue-54400-unused-extern-crate-attr-span.fixed compiletest: add enable-by-default check-cfg 2024-05-04 11:30:38 +02:00
issue-54400-unused-extern-crate-attr-span.rs compiletest: add enable-by-default check-cfg 2024-05-04 11:30:38 +02:00
issue-54400-unused-extern-crate-attr-span.stderr Further cleanup cfgs in the UI test suite 2024-04-09 23:58:18 +02:00
local-path-suggestions-2015.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
local-path-suggestions-2015.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
local-path-suggestions-2018.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 Add needs-unwind for proc macro tests 2024-03-25 15:02:55 +00:00
remove-extern-crate.fixed By tracking import use types to check whether it is scope uses or the other situations like module-relative uses, we can do more accurate redundant import checking. 2024-02-18 16:38:11 +08:00
remove-extern-crate.rs By tracking import use types to check whether it is scope uses or the other situations like module-relative uses, we can do more accurate redundant import checking. 2024-02-18 16:38:11 +08:00
remove-extern-crate.stderr By tracking import use types to check whether it is scope uses or the other situations like module-relative uses, we can do more accurate redundant import checking. 2024-02-18 16:38:11 +08:00
suggestions-not-always-applicable.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
suggestions-not-always-applicable.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
trait-import-suggestions.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
trait-import-suggestions.stderr Deduplicate some logic and reword output 2024-02-22 18:05:28 +00:00
try-ident.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
try-ident.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
try-ident.stderr Deny gen keyword in edition_2024_compat lints 2024-04-22 11:51:50 -04:00
try-macro.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
try-macro.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
try-macro.stderr Deny gen keyword in edition_2024_compat lints 2024-04-22 11:51:50 -04:00
unresolved-asterisk-imports.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unresolved-asterisk-imports.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00