diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-04-03 18:46:45 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-03 18:46:45 +0000 |
| commit | 46d7ee68f26285db26b2640f2c07d6332380c756 (patch) | |
| tree | b1261b79f5334e057317f1999caee9c162521097 /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff | |
| parent | 79a0fee082c6a8fac3dee5baf1f21669304e264d (diff) | |
| parent | 156f9074e19346d79d8d7bc21ff643f50ba6a954 (diff) | |
| download | rust-46d7ee68f26285db26b2640f2c07d6332380c756.tar.gz rust-46d7ee68f26285db26b2640f2c07d6332380c756.zip | |
Merge #11865
11865: Fix: Select correct insert position for disabled group import r=jonasbb a=jonasbb 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 Co-authored-by: Jonas Bushart <jonas@bushart.org>
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions
