rust-analyzer/crates
bors[bot] 2cee8531c5
Merge #3814
3814: Add impl From for enum variant assist r=flodiebold a=mattyhall

Basically adds a From impl for tuple enum variants with one field. It was recommended to me on the zulip to maybe try using the trait solver, but I had trouble with that as, although it could resolve the trait impl, it couldn't resolve the variable unambiguously in real use. I'm also unsure of how it would work if there were already multiple From impls to resolve - I can't see a way we could get more than one solution to my query.

Fixes #3766

Co-authored-by: Matthew Hall <matthew@quickbeam.me.uk>
2020-04-03 07:46:46 +00:00
..
ra_arena Use resize_with 2020-03-31 09:02:12 -04:00
ra_assists Merge #3814 2020-04-03 07:46:46 +00:00
ra_cfg Update versions 2020-02-18 16:12:40 +02:00
ra_db Merge #3727 2020-03-26 17:09:32 +00:00
ra_flycheck Centralize defaults 2020-04-01 18:56:47 +02:00
ra_fmt update itertools version to 0.9.0 2020-03-23 16:22:46 -07:00
ra_hir Cleanup checking for existing impls in impl From assist 2020-04-02 18:42:30 +01:00
ra_hir_def lower bool literal with the value from source code rather than default bool value 2020-04-01 04:47:41 -07:00
ra_hir_expand Implement ra_proc_macro client logic 2020-03-31 22:20:18 +08:00
ra_hir_ty Add inference for literal and range patterns 2020-04-01 20:27:47 +02:00
ra_ide Merge #3797 2020-04-01 12:18:34 +00:00
ra_ide_db Reload only the properties that do not affect vfs 2020-03-30 13:39:14 +03:00
ra_mbe Remove deps on tt_mbe 2020-03-27 00:46:40 +08:00
ra_parser Fix parsing lambdas with return type 2020-03-25 17:01:28 +01:00
ra_proc_macro Redirect stderr to null 2020-03-31 22:20:19 +08:00
ra_prof Fix race in the tests 2020-03-30 11:33:01 +02:00
ra_project_model Migrate to privacy as per review commets 2020-04-02 21:09:03 +03:00
ra_syntax Merge #3814 2020-04-03 07:46:46 +00:00
ra_text_edit Remove some TextUnit->usize escapees 2020-03-12 22:33:27 -04:00
ra_tt Implement ra_proc_macro client logic 2020-03-31 22:20:18 +08:00
rust-analyzer Apply cargo xtask format 2020-04-02 21:12:28 +03:00
stdx Fix typo 2020-03-30 18:51:30 +02:00
test_utils Move verbose tests out of line 2020-03-13 12:20:42 +01:00