rust/crates/ra_syntax
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
..
fuzz Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
src Merge #3814 2020-04-03 07:46:46 +00:00
test_data Attach doc-comment to declaration if there are newlines in between 2020-03-31 14:27:23 +02:00
Cargo.toml Nice string formatting 2020-03-28 12:27:54 +01:00