Skip to content

Commit

Permalink
Auto merge of #113343 - saethlin:looser-alignment, r=RalfJung
Browse files Browse the repository at this point in the history
Update the alignment checks to match rust-lang/reference#1387

Previously, we had a special case to not check `Rvalue::AddressOf` in this pass because we weren't quite sure if pointers needed to be aligned in the Place passed to it: rust-lang/rust#112026

Since rust-lang/reference#1387 merged, this PR updates this pass to match. The behavior of the check is nearly unchanged, except we also avoid inserting a check for creating references. Most of the changes in this PR are cleanup and new tests.
  • Loading branch information
bors committed Nov 4, 2023
2 parents b629e0b + e3e570a commit 0738466
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 0738466

Please sign in to comment.