rust/crates
bors[bot] 77f0c92fd8
Merge #8794
8794: Give MergeBehaviour variants better names r=Veykril a=Veykril

I never really liked the variant names I gave this enum from the beginning and then I found out about rustfmt's `imports_granularity` config:

> imports_granularity
>
> How imports should be grouped into use statements. Imports will be merged or split to the configured level of granularity.
> 
>     Default value: Preserve
>     Possible values: Preserve, Crate, Module, Item
>     Stable: No

I personally prefer using `crate` over `full` and `module` over last, they seem more descriptive. Keeping these similar between tooling also seems like a good plus point to me.

We might even wanna take over the entire enum at some point if we have a `format/cleanup imports` assists in the future which would probably want to also have the `preserve` and `item` options.

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2021-05-10 20:10:59 +00:00
..
base_db Add one more profiling span to add_dep 2021-04-22 21:48:17 +03:00
cfg internal: expose cfg attrs from hir::Crate 2021-05-07 23:50:24 +03:00
flycheck Code review feedback. 2021-04-19 12:26:04 -07:00
hir Correctly support SelfType when searching for usages 2021-05-08 22:34:55 +02:00
hir_def Test that none of the macros are reparsed 2021-05-09 16:39:47 +02:00
hir_expand Merge #8776 2021-05-09 14:40:49 +00:00
hir_ty Correctly support SelfType when searching for usages 2021-05-08 22:34:55 +02:00
ide feat: auto-indent use tree lists 2021-05-10 15:10:56 +02:00
ide_assists Give MergeBehaviour variants better names 2021-05-10 21:14:59 +02:00
ide_completion Merge #8794 2021-05-10 20:10:59 +00:00
ide_db Give MergeBehaviour variants better names 2021-05-10 21:14:59 +02:00
ide_ssr syntax: return owned string instead of leaking string 2021-03-26 18:30:59 +01:00
mbe Merge #8560 2021-04-18 02:14:27 +00:00
parser Add = to pattern recovery 2021-05-08 23:14:08 +02:00
paths Clearer naming 2021-04-06 16:22:26 +03:00
proc_macro_api Replace memmap to memmap2 in proc_macro_api 2021-05-03 20:20:47 -04:00
proc_macro_srv Fix parse u128 bug in proc-macro 2021-03-31 19:50:36 +08:00
proc_macro_test Add description for crates that will be published 2020-08-24 13:07:22 +02:00
profile Use package renaming so source doesn't say tikv 2021-05-07 12:41:07 -07:00
project_model Use RUSTC_BOOTSTRAP=1 instead of +nightly when discovering rust_cfgs throughs cargo 2021-05-09 00:07:04 +02:00
rust-analyzer Update docs 2021-05-10 22:10:12 +02:00
stdx internal: use API stabilized in 1.52 2021-05-06 20:12:15 +03:00
syntax simplify 2021-05-10 15:25:56 +03:00
test_utils internal: use API stabilized in 1.52 2021-05-06 20:12:15 +03:00
text_edit Avoid turning completion objects into builders 2020-11-16 23:16:41 +02:00
toolchain Add description for crates that will be published 2020-08-24 13:07:22 +02:00
tt a lot of clippy::style fixes 2021-03-21 16:15:41 +01:00
vfs Avoid duplicating VfsPath in vfs::path_interner::PathInterner by using an IndexSet 2021-04-06 16:03:57 +03:00
vfs-notify Fix slow tests sometimes failing 2021-02-12 16:31:16 +01:00