Commit b35c60e
authored
Rollup merge of rust-lang#51299 - faern:const-int-ops, r=oli-obk
const fn integer operations
A follow up to rust-lang#51171
Fixes rust-lang#51267
Makes a lot of the integer methods (`swap_bytes`, `count_ones` etc) `const fn`s. See rust-lang#51267 for a discussion about why this is wanted and the solution used.File tree
3 files changed
+313
-14
lines changed- src
- libcore
- num
- test/run-pass
3 files changed
+313
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
0 commit comments