diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-03-11 03:32:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-11 03:32:02 +0100 |
| commit | d58c69ae96c8d936a9074e9c706036242e895d9b (patch) | |
| tree | 038bbcaaed78b20f97a3c6dc921eb52935581458 /compiler/rustc_codegen_llvm/src | |
| parent | 352e621368c31d7b4a6362e081586cdb931ba020 (diff) | |
| parent | ecb792705077c6e6c116146cc797727a2cba4c47 (diff) | |
| download | rust-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
