diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-11-22 14:29:24 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-22 14:29:24 +0000 |
| commit | b69eee64879edf9e9c063f9700e2c1f48fa0fefe (patch) | |
| tree | 873dc05be06b1cf08e10f4138a07c8ff9ef1e609 /src/test/codegen | |
| parent | e8f15bd794de29056028ee40c0b8a23873535f8b (diff) | |
| parent | 601413df8f938d70d24e28f33bbb6ff439230f79 (diff) | |
| download | rust-b69eee64879edf9e9c063f9700e2c1f48fa0fefe.tar.gz rust-b69eee64879edf9e9c063f9700e2c1f48fa0fefe.zip | |
Merge #10809
10809: fix: don't discard formatting of `use` lines r=Veykril a=iDawer Use mutable syntax trees in `merge_imports`, `split_imports`. This tries to resolve #9013. But I haven't much managed to simplify code of merging. Also resolve #9361. It reuses a use tree under the cursor so that comments+indentation are preserved. Merged trees are just appended to the end. This touches bunch of tests. I removed the sorting of use trees as it needs a proper implementation that takes into account comments and line wrapping. I think it is rustfmt's job or at least until we get a close implementation. Co-authored-by: iDawer <ilnur.iskhakov.oss@outlook.com>
Diffstat (limited to 'src/test/codegen')
0 files changed, 0 insertions, 0 deletions
