about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/attributes.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-09-10 09:50:21 +0000
committerbors <bors@rust-lang.org>2022-09-10 09:50:21 +0000
commit5197c96c49fc3b7de3ce9a31f7cc62d2cbd1f70c (patch)
treef0dbcfb3f47bd0bf298f4804f50cd954dc781c5a /compiler/rustc_codegen_llvm/src/attributes.rs
parentdb9d86b58dff2a19d84d5e557641dfbb4cbb3a8d (diff)
parentf632dbe46fb0041c786450f7a3c37a1a5b7208a9 (diff)
downloadrust-5197c96c49fc3b7de3ce9a31f7cc62d2cbd1f70c.tar.gz
rust-5197c96c49fc3b7de3ce9a31f7cc62d2cbd1f70c.zip
Auto merge of #101483 - oli-obk:guaranteed_opt, r=fee1-dead
The `<*const T>::guaranteed_*` methods now return an option for the unknown case

cc https://github.com/rust-lang/rust/issues/53020#issuecomment-1236932443

I chose `0` for "not equal" and `1` for "equal" and left `2` for the unknown case so backends can just forward to raw pointer equality and it works ✨

r? `@fee1-dead` or `@lcnr`

cc `@rust-lang/wg-const-eval`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/attributes.rs')
0 files changed, 0 insertions, 0 deletions