b69eee6487
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> |
||
---|---|---|
.. | ||
helpers | ||
line_index | ||
tests | ||
traits | ||
active_parameter.rs | ||
apply_change.rs | ||
assists.rs | ||
defs.rs | ||
helpers.rs | ||
items_locator.rs | ||
label.rs | ||
lib.rs | ||
line_index.rs | ||
path_transform.rs | ||
rename.rs | ||
search.rs | ||
source_change.rs | ||
symbol_index.rs | ||
traits.rs | ||
ty_filter.rs |