about summary refs log tree commit diff
path: root/compiler/rustc_lexer/src/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-05-05 12:50:59 +0000
committerbors <bors@rust-lang.org>2023-05-05 12:50:59 +0000
commit4a18324a4df6bc98bec0b54d35908d7a9cdc7c32 (patch)
tree28a764500f250517e2a1c4aebd9c10ada135229f /compiler/rustc_lexer/src/lib.rs
parentdd9a7bf848e412c81e3045245acbd5a01641a610 (diff)
parenta1e5c65aa451473d1614fc04cf3c0e67247a17f1 (diff)
downloadrust-4a18324a4df6bc98bec0b54d35908d7a9cdc7c32.tar.gz
rust-4a18324a4df6bc98bec0b54d35908d7a9cdc7c32.zip
Auto merge of #111113 - scottmcm:assume-align-offset, r=thomcc
`assume` the runtime range of `align_offset`

Found when I saw code with `align_to` having extraneous checks.

Demo that LLVM can't do this today: <https://rust.godbolt.org/z/6dnG749bq>

(It's filed as https://github.com/llvm/llvm-project/issues/62502.)
Diffstat (limited to 'compiler/rustc_lexer/src/lib.rs')
0 files changed, 0 insertions, 0 deletions