about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-11-22 14:29:24 +0000
committerGitHub <noreply@github.com>2021-11-22 14:29:24 +0000
commitb69eee64879edf9e9c063f9700e2c1f48fa0fefe (patch)
tree873dc05be06b1cf08e10f4138a07c8ff9ef1e609 /src/test/codegen/src-hash-algorithm
parente8f15bd794de29056028ee40c0b8a23873535f8b (diff)
parent601413df8f938d70d24e28f33bbb6ff439230f79 (diff)
downloadrust-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/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions