mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-24 05:59:39 +00:00
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`
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.