rust/crates
bors[bot] bc8b278841
Merge #8295
8295: Add `convert_into_to_from` assist r=Veykril a=obmarg

This adds a "Convert Into to From" assist, useful since clippy has
recently started adding lints on every `Into`.

It covers converting the signature, and converting any `self`/`Self`
references within the body.

It does assume that every instance of `Into` can be converted to a
`From`, which I _think_ is the case now.  Let me know if there's
something I'm not thinking of and I can try and make it smarter.

Closes #8196 

![CleanShot 2021-04-02 at 13 39 54](https://user-images.githubusercontent.com/556490/113420108-9ce21c00-93c0-11eb-8c49-80b5fb189284.gif)

I'm extremely new to this codebase so please let me know if anything needs
changed.

Co-authored-by: Graeme Coupar <grambo@grambo.me.uk>
2021-04-04 11:38:20 +00:00
..
base_db internal: track missing .check_cancelled 2021-03-29 21:38:23 +03:00
cfg Make ast_to_token_tree infallible 2021-04-04 01:46:45 +02:00
flycheck Bump cargo_metadata 2021-03-02 14:27:29 +02:00
hir Replace Substitution::type_params 2021-04-04 13:16:39 +02:00
hir_def Merge #8324 2021-04-04 01:27:14 +00:00
hir_expand Make ast_to_token_tree infallible 2021-04-04 01:46:45 +02:00
hir_ty Add comment 2021-04-04 13:23:22 +02:00
ide Add and start using TraitRef and ProjectionTy builders 2021-04-04 13:16:38 +02:00
ide_assists Convert Into to From assist 2021-04-03 15:48:35 +01:00
ide_completion Resolve associated types 2021-04-01 21:31:25 +02:00
ide_db Convert Into to From assist 2021-04-03 15:48:35 +01:00
ide_ssr syntax: return owned string instead of leaking string 2021-03-26 18:30:59 +01:00
mbe Make ast_to_token_tree infallible 2021-04-04 01:46:45 +02:00
parser Parse extended_key_value_attributes 2021-03-19 02:13:46 +01:00
paths Document paths items 2021-01-22 15:38:33 +01:00
proc_macro_api Trim down IPC json size 2021-03-24 15:01:37 +08: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 internal: revive google_cpu_profile infra 2021-03-30 17:29:43 +03:00
project_model clippy::complexity simplifications related to Iterators 2021-03-21 13:13:34 +01:00
rust-analyzer Make ast_to_token_tree infallible 2021-04-04 01:46:45 +02:00
stdx Cleanup decl_check 2021-02-05 16:09:45 +01:00
syntax Add support for doc on hover for macro 2.0 2021-03-27 14:57:11 +08:00
test_utils Add new_source_root meta to test fixtures 2021-03-16 15:28:02 +01: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 Fix slow tests sometimes failing 2021-02-12 16:31:16 +01:00
vfs-notify Fix slow tests sometimes failing 2021-02-12 16:31:16 +01:00