about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorJonas Bushart <jonas@bushart.org>2022-03-31 18:15:01 +0000
committerGitHub <noreply@github.com>2022-03-31 18:15:01 +0000
commitc039810b16c15c0d94eb57022130db4d0142918f (patch)
tree33e143c8786c184964473098c4216aafec987a36 /src/test/debuginfo/enum-thinlto.rs
parenta1d684e95130cca21fc78f1642b02811ad09db15 (diff)
downloadrust-c039810b16c15c0d94eb57022130db4d0142918f.tar.gz
rust-c039810b16c15c0d94eb57022130db4d0142918f.zip
Fix: Select correct insert position for disabled group import
The logic for importing with and without `group_imports` differed
significantly when no previous group existed. This lead to the problem
of using the wrong position when importing inside a module (#11585) or
when inner attributes are involved.
The existing code for grouped imports is better and takes these things
into account.

This PR changes the flow to use the pre-existing code for adding a new
import group even for the non-grouped import settings.
Some coverage markers are updated and the `group` is removed, since they
are now invoked in both cases (grouping and no grouping).

Tests are updated and two tests (empty module and inner attribute) are
added.

Fixes #11585
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions