rust-analyzer/crates
bors[bot] 060c8b2c96
Merge #6287
6287: Don't replace entire module and file nodes when inserting imports r=matklad a=Veykril

This change minifies the resulting diff of import insertions by inserting or replacing the produced use tree directly through an `action` return value instead replacing the entire container node. This action has to be applied by the caller now. This unfortunately pulls the `AssistBuilder` into scope of `insert_use` back again but I tried to at least keep it away from the `insert_use` fn itself.

I'm open to more/better ideas regarding this :)

Fixes #6196

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2020-11-03 17:34:59 +00:00
..
arena Add TBD description to arena 2020-08-24 13:29:10 +02:00
assists Make insert_use return a SyntaxRewriter 2020-11-02 21:40:52 +01:00
base_db Feedback. 2020-11-02 10:57:31 -07:00
cfg cfg: move tests to separate file 2020-10-23 12:14:58 +02:00
completion Remove intra-crate facade from completions 2020-11-03 10:36:01 +03:00
flycheck Update crates 2020-10-20 17:36:02 -04:00
hir Remove more unreachable pubs 2020-11-02 16:58:33 +01:00
hir_def Merge #6435 2020-11-03 16:36:34 +00:00
hir_expand Remove more unreachable pubs 2020-11-02 16:58:33 +01:00
hir_ty Improve decl_check module readability 2020-11-03 10:13:49 +03:00
ide Only show self ident when showing parameter self hints 2020-11-02 21:56:16 +01:00
ide_db Merge #6331 #6342 2020-10-24 19:08:12 +00:00
mbe Remove more unreachable pubs 2020-11-02 16:58:33 +01:00
parser Don't interpret type path as part of visibility. 2020-10-24 02:20:45 -04:00
paths Add description for crates that will be published 2020-08-24 13:07:22 +02:00
proc_macro_api Deny unreachable-pub 2020-11-02 14:07:08 +01:00
proc_macro_srv Deny unreachable-pub 2020-11-02 14:07:08 +01:00
proc_macro_test Add description for crates that will be published 2020-08-24 13:07:22 +02:00
profile Deny unreachable-pub 2020-11-02 14:07:08 +01:00
project_model Remove more unreachable pubs 2020-11-02 16:58:33 +01:00
rust-analyzer Fix coalescing of prime_caches updates 2020-11-02 18:49:54 +01:00
ssr Remove more unreachable pubs 2020-11-02 16:58:33 +01:00
stdx Fix panic context 2020-10-23 15:18:33 +02:00
syntax Make insert_use return a SyntaxRewriter 2020-11-02 21:40:52 +01:00
test_utils Feedback. 2020-11-02 10:57:31 -07:00
text_edit Actually assert disjointness 2020-09-03 13:37:36 +02:00
toolchain Add description for crates that will be published 2020-08-24 13:07:22 +02:00
tt Add description for crates that will be published 2020-08-24 13:07:22 +02:00
vfs Remove more unreachable pubs 2020-11-02 16:58:33 +01:00
vfs-notify Follow symlinks when walking project trees 2020-10-15 14:22:36 -04:00