about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2022-06-17 07:16:55 +0900
committerGitHub <noreply@github.com>2022-06-17 07:16:55 +0900
commite4b0d3aff2451316d9650ce2e66557cfb75a5071 (patch)
tree94093ab942722c0b870b5c0f495c61f1814cf73a /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
parent0acd23c1da0a954fa177c195d89db98204bf4867 (diff)
parent1d3037a107dc30e3e7c299eb939c60b7340d97ba (diff)
downloadrust-e4b0d3aff2451316d9650ce2e66557cfb75a5071.tar.gz
rust-e4b0d3aff2451316d9650ce2e66557cfb75a5071.zip
Rollup merge of #97675 - nvzqz:unsized-needs-drop, r=dtolnay
Make `std::mem::needs_drop` accept `?Sized`

This change attempts to make `needs_drop` work with types like `[u8]` and `str`.

This enables code in types like `Arc<T>` that was not possible before, such as https://github.com/rust-lang/rust/pull/97676.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions