diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-02-17 10:54:32 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-17 10:54:32 +0000 |
| commit | fcf15cc05afaeda6880664777ff2a3db342ea088 (patch) | |
| tree | ac34e90a9884d7166daa5022ea402196483c26c0 /editors/code/src | |
| parent | 334f53465f5baf5094844ab3ca2d28e477d07b24 (diff) | |
| parent | 0e260aa6b15d9dc8c067adb05f3774aec3fb66ec (diff) | |
| download | rust-fcf15cc05afaeda6880664777ff2a3db342ea088.tar.gz rust-fcf15cc05afaeda6880664777ff2a3db342ea088.zip | |
Merge #3169
3169: Show record field names in Enum completion r=flodiebold a=adamrk Adresses https://github.com/rust-analyzer/rust-analyzer/issues/2947. Previously the details shown when autocompleting an Enum variant would look like the variant was a tuple even if it was a record:  This change will show the names of the fields for a record and use curly braces instead of parentheses:  This required exposing the type `adt::StructKind` from `ra_hir` and adding a function ``` kind(self, db: &impl HirDatabase) -> StructKind ``` in the `impl` of `EnumVariant`. There was also a previously existing function `is_unit(self, db: &impl HirDatabase) -> bool` for `EnumVariant` which I removed because it seemed redundant after adding `kind`. Co-authored-by: adamrk <ark.email@gmail.com>
Diffstat (limited to 'editors/code/src')
0 files changed, 0 insertions, 0 deletions
