rust-analyzer/crates
bors[bot] b69eee6487
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>
2021-11-22 14:29:24 +00:00
..
base_db Expose version string of crates fom HIR 2021-11-03 15:40:06 +01:00
cfg Replace some String usages with SmolStr in completions 2021-11-05 12:30:39 +01:00
flycheck Allow the check command to terminate without output 2021-11-12 11:43:20 -08:00
hir Merge #10820 2021-11-20 16:26:50 +00:00
hir_def Move incorrect case diagnostic things into their module 2021-11-20 17:25:57 +01:00
hir_expand Check for derive attributes by item path, not derive identifier 2021-11-17 20:46:57 +01:00
hir_ty fix: better Fn traits formatting 2021-11-21 02:39:22 +02:00
ide Split parts of ide_db::call_info off into ide 2021-11-22 13:23:34 +01:00
ide_assists Merge #10809 2021-11-22 14:29:24 +00:00
ide_completion Split parts of ide_db::call_info off into ide 2021-11-22 13:23:34 +01:00
ide_db Merge #10809 2021-11-22 14:29:24 +00:00
ide_diagnostics fix: Diagnose invalid derive attribute input 2021-11-19 13:17:35 +01:00
ide_ssr Merge #10698 2021-11-07 11:02:39 +00:00
limit Drop resolver and authors manifest entries 2021-10-25 18:12:40 +03:00
mbe internal: replace L_DOLLAR/R_DOLLAR with parenthesis hack 2021-10-23 20:44:31 +03:00
parser fix: parse the range pat inside the tuple pat 2021-11-18 11:11:37 +08:00
paths Set MSRV 2021-10-23 15:07:11 +03:00
proc_macro_api Bump object avoid a duplicate dependency 2021-10-30 09:02:45 +03:00
proc_macro_srv Fix proc macro ABI version checks 2021-11-18 10:24:24 +02:00
proc_macro_test Set MSRV 2021-10-23 15:07:11 +03:00
profile Allow disabling perf access via RA_DISABLE_PERF 2021-11-16 19:42:19 +01:00
project_model Merge #10691 2021-11-04 05:52:05 +00:00
rust-analyzer Add toggle to disable cache priming 2021-11-19 19:30:11 +02:00
sourcegen Set MSRV 2021-10-23 15:07:11 +03:00
stdx Set MSRV 2021-10-23 15:07:11 +03:00
syntax Use mutable syntax trees in merge_imports, split_imports 2021-11-19 20:02:27 +05:00
test_utils Set MSRV 2021-10-23 15:07:11 +03:00
text_edit Update crates/text_edit/src/lib.rs 2021-11-03 15:44:46 +01:00
toolchain Set MSRV 2021-10-23 15:07:11 +03:00
tt Set MSRV 2021-10-23 15:07:11 +03:00
vfs minor: Lift out FxIndex{Map/Set} types into ide_db 2021-11-16 12:15:47 +01:00
vfs-notify Set MSRV 2021-10-23 15:07:11 +03:00