diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-03-27 23:27:25 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-27 23:27:25 +0100 |
| commit | 9c91e2cd8464ec1cdcc67f67704ebcf1ae51655f (patch) | |
| tree | 17002d1c46d86b54de4a8d5ac8ed165af4f4c329 /compiler/rustc_pattern_analysis/src | |
| parent | ea7789c56e61a91063035e2af685fcbbdd7c127b (diff) | |
| parent | 336ff42367aa375bba85bf5dbbea535b3c04d929 (diff) | |
| download | rust-9c91e2cd8464ec1cdcc67f67704ebcf1ae51655f.tar.gz rust-9c91e2cd8464ec1cdcc67f67704ebcf1ae51655f.zip | |
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>.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions
