]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #103570 - lukas-code:stabilize-ilog, r=scottmcm
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>
Wed, 9 Nov 2022 13:51:21 +0000 (19:21 +0530)
committerGitHub <noreply@github.com>
Wed, 9 Nov 2022 13:51:21 +0000 (19:21 +0530)
commit1db7f690b19408b4ae86a13f74a8181a1c74721d
treed8904190ce96ee74c6e67febaf07b51bc17bd80d
parent0aaad9e757207657064d70bf9e6c1e6eb327bf15
parent9e36fd926c80dc096d580b762658f07cb976da86
Rollup merge of #103570 - lukas-code:stabilize-ilog, r=scottmcm

Stabilize integer logarithms

Stabilizes feature `int_log`.

I've also made the functions const stable, because they don't depend on any unstable const features. `rustc_allow_const_fn_unstable` is just there for `Option::expect`, which could be replaced with a `match` and `panic!`. cc ``@rust-lang/wg-const-eval``

closes https://github.com/rust-lang/rust/issues/70887 (tracking issue)

~~blocked on FCP finishing: https://github.com/rust-lang/rust/issues/70887#issuecomment-1289028216~~
FCP finished: https://github.com/rust-lang/rust/issues/70887#issuecomment-1302121266
library/core/benches/lib.rs
library/core/src/num/nonzero.rs
library/core/tests/lib.rs
src/tools/miri/src/lib.rs