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`
This commit is contained in:
commit
5197c96c49
12 changed files with 119 additions and 138 deletions
|
@ -1117,8 +1117,7 @@ symbols! {
|
|||
profiler_builtins,
|
||||
profiler_runtime,
|
||||
ptr,
|
||||
ptr_guaranteed_eq,
|
||||
ptr_guaranteed_ne,
|
||||
ptr_guaranteed_cmp,
|
||||
ptr_mask,
|
||||
ptr_null,
|
||||
ptr_null_mut,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue