rust/tests/ui/imports
Esteban Küber 8ce8c42e0b Do not underline suggestions for code that is already there
When a suggestion part is for already present code, do not highlight it. If after that there are no highlights left, do not show the suggestion at all.

Fix clippy lint suggestion incorrectly treated as `span_help`.
2024-08-01 18:53:42 +00:00
..
auxiliary rewrite and rename issue-37893 to rmake 2024-05-29 11:38:47 -04:00
extern-crate-self
import-crate-with-invalid-spans
issue-26873-multifile
issue-45829 Accurate use rename suggestion span 2024-07-18 00:00:04 +00:00
absolute-paths-in-nested-use-groups.rs
absolute-paths-in-nested-use-groups.stderr
ambiguous-1.rs
ambiguous-1.stderr
ambiguous-2.rs
ambiguous-3.rs
ambiguous-3.stderr
ambiguous-4-extern.rs
ambiguous-4-extern.stderr
ambiguous-4.rs
ambiguous-5.rs
ambiguous-5.stderr
ambiguous-6.rs
ambiguous-6.stderr
ambiguous-7.rs
ambiguous-7.stderr
ambiguous-8.rs
ambiguous-8.stderr
ambiguous-9.rs
ambiguous-9.stderr
ambiguous-10.rs
ambiguous-10.stderr
ambiguous-11.rs
ambiguous-11.stderr
ambiguous-12.rs
ambiguous-12.stderr
ambiguous-13.rs
ambiguous-13.stderr
ambiguous-14.rs
ambiguous-14.stderr
ambiguous-15.rs
ambiguous-15.stderr
ambiguous-16.rs
ambiguous-16.stderr
ambiguous-17.rs
ambiguous-17.stderr
append-import-suggestion.rs
append-import-suggestion.stderr
bad-import-in-nested.rs
bad-import-in-nested.stderr
bad-import-with-rename.rs
bad-import-with-rename.stderr
cycle-import-in-diff-module-0.rs resolve: mark it undetermined if single import is not has any bindings 2024-06-04 12:40:41 +08:00
cycle-import-in-diff-module-1.rs resolve: mark it undetermined if single import is not has any bindings 2024-06-04 12:40:41 +08:00
cycle-import-in-std-1.rs mark binding undetermined if target name exist and not obtained 2024-06-07 21:23:56 +08:00
cycle-import-in-std-1.stderr Tweak output of import suggestions 2024-06-13 20:22:21 +00:00
cycle-import-in-std-2.rs mark binding undetermined if target name exist and not obtained 2024-06-07 21:23:56 +08:00
cycle-import-in-std-2.stderr Tweak output of import suggestions 2024-06-13 20:22:21 +00:00
double-import.rs
double-import.stderr Accurate use rename suggestion span 2024-07-18 00:00:04 +00:00
duplicate.rs
duplicate.stderr
empty-import-prefix-pass-2015.rs
empty-import-prefix-pass.rs
export-glob-imports-target.rs
export-multi.rs
extern-crate-used.rs
extern-crate-used.stderr
extern-prelude-extern-crate-absolute-expanded.rs
extern-prelude-extern-crate-cfg.rs
extern-prelude-extern-crate-fail.rs
extern-prelude-extern-crate-fail.stderr
extern-prelude-extern-crate-pass.rs
extern-prelude-extern-crate-restricted-shadowing.rs
extern-prelude-extern-crate-restricted-shadowing.stderr
extern-prelude-extern-crate-shadowing.rs
extern-with-ambiguous-1.rs
extern-with-ambiguous-1.stderr
extern-with-ambiguous-2.rs
extern-with-ambiguous-3.rs
gensymed.rs
glob-conflict-cross-crate-1.rs
glob-conflict-cross-crate-1.stderr
glob-conflict-cross-crate-2.rs
glob-conflict-cross-crate-2.stderr
glob-conflict-cross-crate-3.rs
glob-cycles.rs
glob-resolve1.rs
glob-resolve1.stderr
glob-shadowing.rs
glob-shadowing.stderr
glob-use-std.rs
import2-rpass.rs
import2.rs
import2.stderr
import3-rpass.rs
import3.rs
import3.stderr Structured suggestion for extern crate foo when foo isn't resolved in import 2024-07-29 23:49:51 +00:00
import4-rpass.rs
import4.rs
import4.stderr
import5.rs
import6.rs
import7.rs
import8.rs
import-after-macro-expand-1.rs
import-after-macro-expand-2.rs
import-after-macro-expand-3.rs
import-after-macro-expand-4.rs
import-after-macro-expand-5.rs
import-after-macro-expand-6.rs
import-after-macro-expand-7.rs
import-after-macro-expand-8.rs
import-after-macro-expand-9.rs
import-after-macro-expand-10.rs
import-after-macro-expand-11.rs
import-after-macro-expand-12.rs
import-after-macro-expand-13.rs
import-after-macro-expand-14.rs
import-alias-issue-121168.edition2015.stderr
import-alias-issue-121168.edition2018.stderr Tweak output of import suggestions 2024-06-13 20:22:21 +00:00
import-alias-issue-121168.edition2021.stderr Tweak output of import suggestions 2024-06-13 20:22:21 +00:00
import-alias-issue-121168.rs
import-crate-var.rs
import-crate-var.stderr
import-from-missing-star-2.rs Silence some resolve errors when there have been glob import errors 2024-05-28 14:45:21 +00:00
import-from-missing-star-2.stderr Structured suggestion for extern crate foo when foo isn't resolved in import 2024-07-29 23:49:51 +00:00
import-from-missing-star-3.rs Silence some resolve errors when there have been glob import errors 2024-05-28 14:45:21 +00:00
import-from-missing-star-3.stderr Structured suggestion for extern crate foo when foo isn't resolved in import 2024-07-29 23:49:51 +00:00
import-from-missing-star.rs Silence some resolve errors when there have been glob import errors 2024-05-28 14:45:21 +00:00
import-from-missing-star.stderr Structured suggestion for extern crate foo when foo isn't resolved in import 2024-07-29 23:49:51 +00:00
import-from-missing.rs
import-from-missing.stderr
import-from.rs
import-glob-0-rpass.rs
import-glob-0.rs
import-glob-0.stderr
import-glob-1.rs
import-glob-circular.rs
import-glob-circular.stderr
import-glob-crate.rs
import-in-block.rs
import-loop-2.rs
import-loop-2.stderr
import-loop.rs
import-loop.stderr
import-prefix-macro-1.rs
import-prefix-macro-1.stderr
import-prefix-macro-2.rs
import-prefix-macro-2.stderr
import-prefix-macro.rs
import-rename.rs
import-rpass.rs
import-trailing-comma.rs
import-trait-method.rs
import-trait-method.stderr
import.rs
import.stderr
imports.rs
inaccessible_type_aliases.rs
inaccessible_type_aliases.stderr
issue-1697.rs Structured suggestion for extern crate foo when foo isn't resolved in import 2024-07-29 23:49:51 +00:00
issue-1697.stderr Structured suggestion for extern crate foo when foo isn't resolved in import 2024-07-29 23:49:51 +00:00
issue-2937.rs
issue-2937.stderr
issue-4366-2.rs
issue-4366-2.stderr
issue-4366.rs
issue-4366.stderr
issue-4865-1.rs
issue-4865-2.rs
issue-4865-3.rs
issue-8208.rs
issue-8208.stderr
issue-8640.rs
issue-8640.stderr Accurate use rename suggestion span 2024-07-18 00:00:04 +00:00
issue-13404.rs
issue-13404.stderr
issue-18083.rs
issue-19498.rs
issue-19498.stderr Accurate use rename suggestion span 2024-07-18 00:00:04 +00:00
issue-24081.rs
issue-24081.stderr Accurate use rename suggestion span 2024-07-18 00:00:04 +00:00
issue-24883.rs
issue-25396.rs
issue-25396.stderr Accurate use rename suggestion span 2024-07-18 00:00:04 +00:00
issue-26886.rs
issue-26886.stderr
issue-26930.rs
issue-28134.rs
issue-28134.stderr
issue-28388-1.rs
issue-28388-1.stderr
issue-28388-2.rs
issue-28388-2.stderr
issue-30560.rs
issue-30560.stderr
issue-31212.rs Silence some resolve errors when there have been glob import errors 2024-05-28 14:45:21 +00:00
issue-31212.stderr Silence some resolve errors when there have been glob import errors 2024-05-28 14:45:21 +00:00
issue-32119.rs
issue-32222.rs
issue-32354-suggest-import-rename.fixed
issue-32354-suggest-import-rename.rs
issue-32354-suggest-import-rename.stderr Accurate use rename suggestion span 2024-07-18 00:00:04 +00:00
issue-32833.rs
issue-32833.stderr
issue-33464.rs
issue-33464.stderr Structured suggestion for extern crate foo when foo isn't resolved in import 2024-07-29 23:49:51 +00:00
issue-36881.rs
issue-36881.stderr Structured suggestion for extern crate foo when foo isn't resolved in import 2024-07-29 23:49:51 +00:00
issue-37887.rs
issue-37887.stderr Structured suggestion for extern crate foo when foo isn't resolved in import 2024-07-29 23:49:51 +00:00
issue-38293.rs
issue-38293.stderr
issue-45799-bad-extern-crate-rename-suggestion-formatting.fixed
issue-45799-bad-extern-crate-rename-suggestion-formatting.rs
issue-45799-bad-extern-crate-rename-suggestion-formatting.stderr
issue-47623.rs
issue-47623.stderr
issue-52891.fixed
issue-52891.rs
issue-52891.stderr Accurate use rename suggestion span 2024-07-18 00:00:04 +00:00
issue-53140.rs
issue-53269.rs
issue-53269.stderr Structured suggestion for extern crate foo when foo isn't resolved in import 2024-07-29 23:49:51 +00:00
issue-53512.rs
issue-53512.stderr
issue-53565.rs
issue-53565.stderr
issue-55457.rs
issue-55457.stderr Structured suggestion for extern crate foo when foo isn't resolved in import 2024-07-29 23:49:51 +00:00
issue-55811.rs
issue-55884-1.rs
issue-55884-1.stderr
issue-55884-2.rs
issue-55884-2.stderr Do not underline suggestions for code that is already there 2024-08-01 18:53:42 +00:00
issue-56125.rs
issue-56125.stderr Tweak output of import suggestions 2024-06-13 20:22:21 +00:00
issue-56263.rs
issue-57015.rs
issue-57015.stderr
issue-57539.rs
issue-57539.stderr
issue-59764.rs
issue-59764.stderr Fix ... in multline code-skips in suggestions 2024-06-20 04:25:17 +00:00
issue-62767.rs
issue-68103.rs
issue-81413.rs
issue-81413.stderr Structured suggestion for extern crate foo when foo isn't resolved in import 2024-07-29 23:49:51 +00:00
issue-85992.rs
issue-85992.stderr
issue-99695-b.fixed
issue-99695-b.rs
issue-99695-b.stderr
issue-99695.fixed
issue-99695.rs
issue-99695.stderr
issue-109148.rs
issue-109148.stderr
issue-109343.rs
issue-109343.stderr Structured suggestion for extern crate foo when foo isn't resolved in import 2024-07-29 23:49:51 +00:00
issue-113953.rs
issue-113953.stderr
issue-114682-1.rs
issue-114682-1.stderr
issue-114682-2.rs
issue-114682-2.stderr
issue-114682-3.rs
issue-114682-4.rs
issue-114682-5.rs
issue-114682-6.rs
issue-119369.rs
local-modularized-tricky-fail-1.rs
local-modularized-tricky-fail-1.stderr
local-modularized-tricky-fail-2.rs
local-modularized-tricky-fail-2.stderr
local-modularized-tricky-pass-1.rs
local-modularized-tricky-pass-2.rs
local-modularized.rs
macro-paths.rs
macro-paths.stderr
macros.rs
macros.stderr
no-pub-reexports-but-used.rs
no-pub-reexports-but-used.stderr
no-std-inject.rs
no-std-inject.stderr
overlapping_pub_trait.rs
overlapping_pub_trait.stderr
private-std-reexport-suggest-public.fixed
private-std-reexport-suggest-public.rs
private-std-reexport-suggest-public.stderr
pub-reexport-empty.rs
pub-reexport-empty.stderr
redundant-import-extern-prelude.rs Introduce REDUNDANT_IMPORTS lint 2024-07-31 00:07:42 -04:00
redundant-import-extern-prelude.stderr Introduce REDUNDANT_IMPORTS lint 2024-07-31 00:07:42 -04:00
redundant-import-issue-121915-2015.rs Introduce REDUNDANT_IMPORTS lint 2024-07-31 00:07:42 -04:00
redundant-import-issue-121915-2015.stderr Introduce REDUNDANT_IMPORTS lint 2024-07-31 00:07:42 -04:00
redundant-import-lang-prelude-attr.rs Introduce REDUNDANT_IMPORTS lint 2024-07-31 00:07:42 -04:00
redundant-import-lang-prelude-attr.stderr Introduce REDUNDANT_IMPORTS lint 2024-07-31 00:07:42 -04:00
redundant-import-lang-prelude.rs Introduce REDUNDANT_IMPORTS lint 2024-07-31 00:07:42 -04:00
redundant-import-lang-prelude.stderr Introduce REDUNDANT_IMPORTS lint 2024-07-31 00:07:42 -04:00
redundant-import-undetected-macro-use-prelude.rs
reexport-star.rs
reexports.rs
reexports.stderr
resolve_self_super_hint.rs
resolve_self_super_hint.stderr
resolve-other-libc.rs
resolve-other-libc.stderr
rfc-1560-warning-cycle.rs
rfc-1560-warning-cycle.stderr
shadow_builtin_macros.rs
shadow_builtin_macros.stderr
shadow-glob-module-resolution-1.rs resolve: mark it undetermined if single import is not has any bindings 2024-06-04 12:40:41 +08:00
shadow-glob-module-resolution-1.stderr resolve: mark it undetermined if single import is not has any bindings 2024-06-04 12:40:41 +08:00
shadow-glob-module-resolution-2.rs resolve: mark it undetermined if single import is not has any bindings 2024-06-04 12:40:41 +08:00
shadow-glob-module-resolution-2.stderr resolve: mark it undetermined if single import is not has any bindings 2024-06-04 12:40:41 +08:00
shadow-glob-module-resolution-3.rs mark undetermined if target binding in current ns is not got 2024-06-17 11:29:43 +08:00
shadow-glob-module-resolution-3.stderr mark undetermined if target binding in current ns is not got 2024-06-17 11:29:43 +08:00
shadow-glob-module-resolution-4.rs mark undetermined if target binding in current ns is not got 2024-06-17 11:29:43 +08:00
shadow-glob-module-resolution-4.stderr mark undetermined if target binding in current ns is not got 2024-06-17 11:29:43 +08:00
simple-dylib-import.rs rewrite and rename issue-37893 to rmake 2024-05-29 11:38:47 -04:00
simple-rlib-import.rs Rewrite simple-rlib to rmake 2024-05-28 11:41:53 -04:00
suggest-import-ice-issue-127302.edition2015.stderr Fix import suggestion ice 2024-07-04 09:55:00 +00:00
suggest-import-ice-issue-127302.edition2021.stderr Fix import suggestion ice 2024-07-04 09:55:00 +00:00
suggest-import-ice-issue-127302.rs Fix import suggestion ice 2024-07-04 09:55:00 +00:00
suggest-import-issue-120074.edition2015.stderr Fix import suggestion ice 2024-07-04 09:55:00 +00:00
suggest-import-issue-120074.edition2021.stderr Fix import suggestion ice 2024-07-04 09:55:00 +00:00
suggest-import-issue-120074.rs Fix import suggestion ice 2024-07-04 09:55:00 +00:00
suggest-remove-issue-121315.rs Introduce REDUNDANT_IMPORTS lint 2024-07-31 00:07:42 -04:00
suggest-remove-issue-121315.stderr Introduce REDUNDANT_IMPORTS lint 2024-07-31 00:07:42 -04:00
tool-mod-child.rs Do not use question as label 2024-07-24 21:03:27 +00:00
tool-mod-child.stderr Structured suggestion for extern crate foo when foo isn't resolved in import 2024-07-29 23:49:51 +00:00
unnamed_pub_trait.rs
unnamed_pub_trait.stderr
unresolved-imports-used.rs
unresolved-imports-used.stderr Structured suggestion for extern crate foo when foo isn't resolved in import 2024-07-29 23:49:51 +00:00
unresolved-seg-after-ambiguous.rs
unresolved-seg-after-ambiguous.stderr
unused-import-issue-87973.fixed
unused-import-issue-87973.rs
unused-import-issue-87973.stderr
unused-imports-in-test-mode.rs
unused-imports-in-test-mode.stderr
unused-imports-in-test-module.rs
unused-imports-in-test-module.stderr
unused-macro-use.rs
unused-macro-use.stderr
unused.rs
unused.stderr
use-mod.rs