about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-03-12 15:44:51 +0000
committerGitHub <noreply@github.com>2022-03-12 15:44:51 +0000
commitff7e057dca58865a670581ab5dcaa006ed17696c (patch)
tree98fa62c4c65549e6a4b6ead4fa686346de46cc0d /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
parent421d9643ba5d99446269decfc5bb82a948d16029 (diff)
parentf922b805fef6f38da2f5c901fbcd76b9e4ccad92 (diff)
downloadrust-ff7e057dca58865a670581ab5dcaa006ed17696c.tar.gz
rust-ff7e057dca58865a670581ab5dcaa006ed17696c.zip
Merge #11691
11691: feat: Suggest union literals, suggest union fields within an empty union literal r=Veykril a=m0rg-dev

Adds a `Union {…}` completion in contexts where a union is expected, expanding to a choice of available fields (if snippets are supported):

![image](https://user-images.githubusercontent.com/38578268/158023335-84c03e39-daf0-4a52-b969-f40b01501cc8.png)
![image](https://user-images.githubusercontent.com/38578268/158023354-db49d0bb-034c-49d3-bc02-07414179cb61.png)

Also, adds support for listing possible fields in an empty union literal.

![image](https://user-images.githubusercontent.com/38578268/158023398-4695ae34-ce64-4f40-8494-68731a3030c6.png)
![image](https://user-images.githubusercontent.com/38578268/158023406-be96dd95-125a-47ac-9628-0bce634ca2eb.png)

Closes #11568.

Co-authored-by: Morgan Thomas <corp@m0rg.dev>
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions