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:
authorAaron Kofsky <aaronko@umich.edu>2022-06-04 20:19:19 -0400
committerAaron Kofsky <aaronko@umich.edu>2022-06-04 20:19:19 -0400
commite6b66784aca8564557485d902968ff7523cf30ca (patch)
tree60c265f318a567634f2f6906bd5f1baa366885c5 /tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.panic-unwind.diff
parent30e8adb1a766e8444586fef3953bf7715fe588e1 (diff)
downloadrust-e6b66784aca8564557485d902968ff7523cf30ca.tar.gz
rust-e6b66784aca8564557485d902968ff7523cf30ca.zip
Bail out early if the type does not has a trivial Drop implementation.
If the type has a trivial Drop implementation, then it is probably irrelevant
that the type was dropped immediately, since nothing important
happens on drop. Hence, we can bail out early instead of doing some
expensive checks.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions