]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Rollup merge of #95374 - RalfJung:assert_uninit_valid, r=Mark-Simulacrum
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>
Sat, 9 Apr 2022 03:58:41 +0000 (05:58 +0200)
committerGitHub <noreply@github.com>
Sat, 9 Apr 2022 03:58:41 +0000 (05:58 +0200)
commit9010879c0ac4256e867280421eb94ffae2cd9ad3
treebc6a8e4a87d4d801c1316772736ad3b312cc0826
parentee8cea8ac48df14c9089720823910a5a8fddbb2c
parente132077db74dd6bd26566dbe3610848e3a771256
Rollup merge of #95374 - RalfJung:assert_uninit_valid, r=Mark-Simulacrum

assert_uninit_valid: ensure we detect at least arrays of uninhabited types

We can't easily extend this check to *all* arrays (Cc https://github.com/rust-lang/rust/pull/87041), but it turns out the existing check already catches arrays of uninhabited types. So let's make sure it stays that way by adding them to the test.