diff options
| author | bors <bors@rust-lang.org> | 2018-06-01 03:24:54 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-06-01 03:24:54 +0000 |
| commit | 63cd4a39ead1bdcc6f4df5f11d187916bd8d3ea7 (patch) | |
| tree | c16da5601fbe4b7cef6a46d53d94fecf004afc34 /src/libstd | |
| parent | b7a9d4ea744c9a99952bc4576727b57c58c0e958 (diff) | |
| parent | 97a0d46dece080714a4fe1ac21f84ad54f6ab76d (diff) | |
| download | rust-63cd4a39ead1bdcc6f4df5f11d187916bd8d3ea7.tar.gz rust-63cd4a39ead1bdcc6f4df5f11d187916bd8d3ea7.zip | |
Auto merge of #51171 - faern:const-bswap-ctpop-cttz-ctlz, r=oli-obk
Make some std::intrinsics `const fn`s Making some rustc intrinsics (`ctpop`, `cttz`, `ctlz` and `bswap`) `const fn`s. This is a pre-step to being able to make `swap_bytes`, `to_be` and `from_be` constant functions. That in itself could be ergonomic and useful. But even better is that it would allow `Ipv4Addr::new` etc becoming `const fn`s as well. Which might be really useful since I find it quite common to want to define them as constants. r? @oli-obk
Diffstat (limited to 'src/libstd')
0 files changed, 0 insertions, 0 deletions
