]> git.lizzy.rs Git - rust.git/commit
Auto merge of #100064 - RalfJung:disaligned, r=petrochenkov
authorbors <bors@rust-lang.org>
Wed, 3 Aug 2022 16:09:56 +0000 (16:09 +0000)
committerbors <bors@rust-lang.org>
Wed, 3 Aug 2022 16:09:56 +0000 (16:09 +0000)
commitd6b96b61e75dd5ad24a77d6a26a7eef3b492856e
tree416c2a4dab6081d97b9feba787a2e7fa35c135e7
parent04f72f95384d97f4c4e7a59e60cb85ec581ebe06
parent9097ce905427c30bd262f62a403f1e987ebb10c6
Auto merge of #100064 - RalfJung:disaligned, r=petrochenkov

fix is_disaligned logic for nested packed structs

https://github.com/rust-lang/rust/pull/83605 broke the `is_disaligned` logic by bailing out of the loop in `is_within_packed` early. This PR fixes that problem and adds suitable tests.

Fixes https://github.com/rust-lang/rust/issues/99838