diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2024-01-24 15:43:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-24 15:43:11 +0100 |
| commit | 3529d45b7470c13eb1ab2bc03d660e1e1846ded8 (patch) | |
| tree | b97ef3ae059f70f212415a396fc08f59c0e5c654 /compiler/rustc_mir_transform/src/coverage | |
| parent | 61e2b410ffc9356c7f0c83c974231105882e351a (diff) | |
| parent | 0b1d7ffbd4d5c0546ccab819971f1d87a2d76d62 (diff) | |
| download | rust-3529d45b7470c13eb1ab2bc03d660e1e1846ded8.tar.gz rust-3529d45b7470c13eb1ab2bc03d660e1e1846ded8.zip | |
Rollup merge of #118326 - WaffleLapkin:nz_count_ones, r=scottmcm
Add `NonZero*::count_ones`
This PR adds the following APIs to the standard library:
```rust
impl NonZero* {
pub const fn count_ones(self) -> NonZeroU32;
}
```
This is potentially interesting, given that `count_ones` can't ever return 0.
r? libs-api
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage')
0 files changed, 0 insertions, 0 deletions
