about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff
diff options
context:
space:
mode:
authorLingMan <LingMan@users.noreply.github.com>2021-01-17 02:07:37 +0100
committerLingMan <LingMan@users.noreply.github.com>2021-01-17 02:07:37 +0100
commit0a74e17211b9ba95555790be3a0a16a562d74280 (patch)
tree5100575a4a47ef62023e3ac255361720af201af5 /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff
parentefdb859dcdf7077cf6b8c85af0ea8820c93bcbdf (diff)
downloadrust-0a74e17211b9ba95555790be3a0a16a562d74280.tar.gz
rust-0a74e17211b9ba95555790be3a0a16a562d74280.zip
Initialize a few variables directly
Currently they are declared as `mut`, get initialized to a default value, and
then possibly overwritten.

By initializing to the final value directly, they don't need to be `mut` and
it's clear that they don't get mutated elsewhere later on.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff')
0 files changed, 0 insertions, 0 deletions