about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorRajiv Sharma <rajshar@fb.com>2022-08-28 00:36:16 +0100
committerCaleb Cartwright <calebcartwright@users.noreply.github.com>2023-02-01 21:33:19 -0600
commit5391847ea5a12262704657a0708b1674fb344403 (patch)
treef46fbb6540d78ab481a6c5c9270020a6ccb2c4ca /tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.panic-unwind.diff
parente2996a807b411218bb3dca0f2a0e420839cd3875 (diff)
downloadrust-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_bound_mut.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions