Skip to content

Commit

Permalink
Auto merge of #107167 - the8472:rawvec-simpler-layout, r=thomcc
Browse files Browse the repository at this point in the history
simplify layout calculations in rawvec

The use of `Layout::array` was introduced in #83706 which lead to a [perf regression](rust-lang/rust#83706 (comment)).

This PR basically reverts that change since rust currently only supports stride == size types, but to be on the safe side it leaves a const-assert there to make sure this gets caught if those assumptions ever change.
  • Loading branch information
bors committed Feb 11, 2023
2 parents b5a0839 + 7498452 commit 9c35e16
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 9c35e16

Please sign in to comment.