about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-03-11 15:43:12 +0100
committerGitHub <noreply@github.com>2023-03-11 15:43:12 +0100
commitffc0b8a5456c9124437dc55a4dbf29b32294649b (patch)
treee03bde4f057116d53c66b1bddc2ef9caad8a2276 /compiler/rustc_codegen_gcc/src/errors.rs
parentfbc121fdfd30daad5b99bae1aac4d6bd4d42ba02 (diff)
parentd1b7681e1e9aa43a4b4abc9c04c4e6f62fbdb9c6 (diff)
downloadrust-ffc0b8a5456c9124437dc55a4dbf29b32294649b.tar.gz
rust-ffc0b8a5456c9124437dc55a4dbf29b32294649b.zip
Rollup merge of #106633 - c410-f3r:stabilize-nonzero_bits, r=dtolnay
Stabilize `nonzero_min_max`

## Overall

Stabilizes `nonzero_min_max` to allow the "infallible" construction of ordinary minimum and maximum `NonZero*` instances.

The feature is fairly straightforward and already matured for some time in stable toolchains.

```rust
let _ = NonZeroU8::MIN;
let _ = NonZeroI32::MAX;
```

## History

* On 2022-01-25, implementation was [created](https://github.com/rust-lang/rust/pull/93293).

## Considerations

* This report is fruit of the inanition observed after two unsuccessful attempts at getting feedback.
* Other constant variants discussed at https://github.com/rust-lang/rust/issues/89065#issuecomment-923238190 are orthogonal to this feature.

Fixes https://github.com/rust-lang/rust/issues/89065
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/errors.rs')
0 files changed, 0 insertions, 0 deletions