about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-03-11 03:32:02 +0100
committerGitHub <noreply@github.com>2022-03-11 03:32:02 +0100
commitd58c69ae96c8d936a9074e9c706036242e895d9b (patch)
tree038bbcaaed78b20f97a3c6dc921eb52935581458 /compiler/rustc_codegen_llvm/src
parent352e621368c31d7b4a6362e081586cdb931ba020 (diff)
parentecb792705077c6e6c116146cc797727a2cba4c47 (diff)
downloadrust-d58c69ae96c8d936a9074e9c706036242e895d9b.tar.gz
rust-d58c69ae96c8d936a9074e9c706036242e895d9b.zip
Rollup merge of #93293 - nvzqz:nonzero-min-max, r=joshtriplett
Implement `MIN`/`MAX` constants for non-zero integers

This adds the associated [`MIN`](https://doc.rust-lang.org/stable/std/primitive.usize.html#associatedconstant.MIN)/[`MAX`](https://doc.rust-lang.org/stable/std/primitive.usize.html#associatedconstant.MAX) constants to `NonZero{U,I}{8,16,32,64,128,size}`, requested in #89065.

This reimplements #89077 due that PR being stagnant for 4 months. I am fine with closing this in favor of that one if the author revisits it. If so, I'd like to see that PR have the docs link to the `$Int`'s constants.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions