diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-03-13 20:01:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-13 20:01:58 +0100 |
| commit | 2f9bc56e5a21534326f4483f3f6381175ada2cea (patch) | |
| tree | 7b441a7c0eb6e03d628d6258b700bc938e7fbc9a /compiler/rustc_codegen_llvm/src | |
| parent | ebed06fcba3b58913a5087039a81478d43b47b2f (diff) | |
| parent | 6b5acf0d4063fc726f68fcd444140ffd576b7304 (diff) | |
| download | rust-2f9bc56e5a21534326f4483f3f6381175ada2cea.tar.gz rust-2f9bc56e5a21534326f4483f3f6381175ada2cea.zip | |
Rollup merge of #93292 - nvzqz:nonzero-bits, r=dtolnay
Implement `BITS` constant for non-zero integers
This adds the associated [`BITS`](https://doc.rust-lang.org/stable/std/primitive.usize.html#associatedconstant.BITS) constant to `NonZero{U,I}{8,16,32,64,128,size}`.
This is useful when a type alias refers to either a regular or non-zero integer.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
