about summary refs log tree commit diff
path: root/compiler/rustc_metadata/src/errors.rs
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-01-26 01:51:18 -0500
committerGitHub <noreply@github.com>2025-01-26 01:51:18 -0500
commit359c5047aba8e11112a30e2573643ac9d767eefa (patch)
tree50d7d832b03b00b561e0ea05e3d376b972d2f608 /compiler/rustc_metadata/src/errors.rs
parentc40936fc2fdb1cbf39bde262388304d9dc438b8f (diff)
parent2d11559f56bbe112b13d2fe43fbfd40b7258f34e (diff)
downloadrust-359c5047aba8e11112a30e2573643ac9d767eefa.tar.gz
rust-359c5047aba8e11112a30e2573643ac9d767eefa.zip
Rollup merge of #136019 - scottmcm:alias-unchecked-div, r=Mark-Simulacrum
Add an `unchecked_div` alias to the `Div<NonZero<_>>` impls

Inspired by https://github.com/rust-lang/libs-team/issues/526, if people are looking for `unchecked_div`, point them to `u32: Div<NonZero<u32>>` and friends which do no runtime checks -- and are safe! -- rather than today's behaviour of [the intrinsic being the top result](https://doc.rust-lang.org/std/?search=unchecked_div).

![image](https://github.com/user-attachments/assets/cf2a3c06-4876-49c1-8e33-64cd431c772a)
Diffstat (limited to 'compiler/rustc_metadata/src/errors.rs')
0 files changed, 0 insertions, 0 deletions