rust/library/core
Matthias Krüger 9c91e2cd84
Rollup merge of #123139 - scottmcm:simpler-nonzero-get, r=jhpratt
`num::NonZero::get` can be 1 transmute instead of 2

Just something I noticed in passing.  No need for a `match` in here to call `unreachable_unchecked`, as `transmute_unchecked` will add the appropriate `llvm.assume` <https://rust.godbolt.org/z/W5hjeETnc>.
2024-03-27 23:27:25 +01:00
..
benches Add benches for net parsing 2024-03-04 18:46:24 -05:00
src Rollup merge of #123139 - scottmcm:simpler-nonzero-get, r=jhpratt 2024-03-27 23:27:25 +01:00
tests step cfgs 2024-03-20 08:49:13 -04:00
Cargo.toml Import the 2021 prelude in the core crate 2024-03-25 13:12:06 -07:00