diff options
| author | Rajiv Sharma <rajshar@fb.com> | 2022-08-28 00:36:16 +0100 |
|---|---|---|
| committer | Caleb Cartwright <calebcartwright@users.noreply.github.com> | 2023-02-01 21:33:19 -0600 |
| commit | 5391847ea5a12262704657a0708b1674fb344403 (patch) | |
| tree | f46fbb6540d78ab481a6c5c9270020a6ccb2c4ca /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.panic-unwind.diff | |
| parent | e2996a807b411218bb3dca0f2a0e420839cd3875 (diff) | |
| download | rust-5391847ea5a12262704657a0708b1674fb344403.tar.gz rust-5391847ea5a12262704657a0708b1674fb344403.zip | |
Fix #5488 - prevent shorthand init for tuple struct
Closes #5488 Fix for #5488. Before applying shorthand initialization for structs, check if identifier is a literal (e.g. tuple struct). If yes, then do not apply short hand initialization. Added test case to validate the changes for the fix.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions
