rust/tests/ui/imports
bors d8da513668 Auto merge of #106916 - lukas-code:overlapping-substs, r=estebank
Remove overlapping parts of multipart suggestions

This PR adds a debug assertion that the parts of a single substitution cannot overlap, fixes a overlapping substitution from the testsuite, and fixes https://github.com/rust-lang/rust/issues/106870.

Note that a single suggestion can still have multiple overlapping substitutions / possible edits, we just don't suggest overlapping replacements in a single edit anymore.

I've also included a fix for an unrelated bug where rustfix for `explicit_outlives_requirements` would produce multiple trailing commas for a where clause.
2023-01-28 10:00:56 +00:00
..
auxiliary Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-crate-self Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-crate-with-invalid-spans Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-26873-multifile Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-45829 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
absolute-paths-in-nested-use-groups.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
absolute-paths-in-nested-use-groups.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bad-import-in-nested.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bad-import-in-nested.stderr note -> help 2023-01-17 03:09:49 +00:00
bad-import-with-rename.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bad-import-with-rename.stderr Fix use suggestion span 2023-01-17 03:06:38 +00:00
double-import.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
double-import.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
duplicate.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
duplicate.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
export-glob-imports-target.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
export-multi.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-crate-used.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-crate-used.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-prelude-extern-crate-absolute-expanded.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-prelude-extern-crate-cfg.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-prelude-extern-crate-fail.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-prelude-extern-crate-fail.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-prelude-extern-crate-pass.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-prelude-extern-crate-restricted-shadowing.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-prelude-extern-crate-restricted-shadowing.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
extern-prelude-extern-crate-shadowing.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
gensymed.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
glob-conflict-cross-crate.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
glob-conflict-cross-crate.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
glob-cycles.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
glob-resolve1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
glob-resolve1.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
glob-shadowing.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
glob-shadowing.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
glob-use-std.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import2-rpass.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import3-rpass.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import3.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import4-rpass.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import4.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import4.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import5.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import6.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import7.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import8.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-crate-var.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-crate-var.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-from-missing.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-from-missing.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-from.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-glob-0-rpass.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-glob-0.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-glob-0.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-glob-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-glob-circular.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-glob-circular.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-glob-crate.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-in-block.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-loop-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-loop-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-loop.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-loop.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-prefix-macro-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-prefix-macro-1.stderr preserve delim spans during macro_rules! expansion if able 2023-01-20 20:16:37 +01:00
import-prefix-macro-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-prefix-macro-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-prefix-macro.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-rename.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-rpass.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-trailing-comma.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-trait-method.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import-trait-method.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
import.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
imports.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
inaccessible_type_aliases.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
inaccessible_type_aliases.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-1697.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-1697.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-2937.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-2937.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-4366-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-4366-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-4366.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-4366.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-4865-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-4865-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-4865-3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-8208.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-8208.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-8640.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-8640.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-13404.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-13404.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-18083.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-19498.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-19498.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-24081.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-24081.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-24883.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-25396.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-25396.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-26886.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-26886.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-26930.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-28134.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-28134.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-28388-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-28388-1.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-28388-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-28388-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-30560.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-30560.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-31212.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-31212.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-32119.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-32222.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-32354-suggest-import-rename.fixed Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-32354-suggest-import-rename.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-32354-suggest-import-rename.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-32833.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-32833.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-33464.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-33464.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-36881.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-36881.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-37887.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-37887.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-38293.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-38293.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-45799-bad-extern-crate-rename-suggestion-formatting.fixed Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-45799-bad-extern-crate-rename-suggestion-formatting.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-45799-bad-extern-crate-rename-suggestion-formatting.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-47623.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-47623.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-52891.fixed Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-52891.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-52891.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-53140.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-53269.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-53269.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-53512.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-53512.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-53565.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-53565.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-55457.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-55457.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-55811.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-55884-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-55884-1.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-55884-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-55884-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-56125.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-56125.stderr Fix use suggestion span 2023-01-17 03:06:38 +00:00
issue-56263.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-57015.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-57015.stderr Fix use suggestion span 2023-01-17 03:06:38 +00:00
issue-57539.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-57539.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-59764.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-59764.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-62767.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-68103.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-99695-b.fixed diagnostics: add }; only if { was added too 2023-01-20 14:53:33 -07:00
issue-99695-b.rs diagnostics: add }; only if { was added too 2023-01-20 14:53:33 -07:00
issue-99695-b.stderr diagnostics: add }; only if { was added too 2023-01-20 14:53:33 -07:00
issue-99695.fixed diagnostics: suggest changing s@self::{macro}@::macro for exported 2023-01-20 14:52:24 -07:00
issue-99695.rs diagnostics: suggest changing s@self::{macro}@::macro for exported 2023-01-20 14:52:24 -07:00
issue-99695.stderr diagnostics: suggest changing s@self::{macro}@::macro for exported 2023-01-20 14:52:24 -07:00
local-modularized-tricky-fail-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
local-modularized-tricky-fail-1.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
local-modularized-tricky-fail-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
local-modularized-tricky-fail-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
local-modularized-tricky-pass-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
local-modularized-tricky-pass-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
local-modularized.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
macro-paths.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
macro-paths.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
macros.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
macros.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no-std-inject.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
no-std-inject.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
overlapping_pub_trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
overlapping_pub_trait.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
reexport-star.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
reexports.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
reexports.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
resolve_self_super_hint.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
resolve_self_super_hint.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rfc-1560-warning-cycle.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rfc-1560-warning-cycle.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
shadow_builtin_macros.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
shadow_builtin_macros.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
tool-mod-child.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
tool-mod-child.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unnamed_pub_trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unnamed_pub_trait.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unresolved-imports-used.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unresolved-imports-used.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unused-import-issue-87973.fixed Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unused-import-issue-87973.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unused-import-issue-87973.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unused-imports-in-test-mode.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unused-imports-in-test-mode.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unused-imports-in-test-module.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unused-imports-in-test-module.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unused-macro-use.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unused-macro-use.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unused.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unused.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
use-mod.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00