]> git.lizzy.rs Git - rust.git/commitdiff
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)
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

1  2 
library/core/benches/lib.rs
library/core/src/num/nonzero.rs
library/core/tests/lib.rs
src/tools/miri/src/lib.rs

Simple merge
Simple merge
Simple merge
Simple merge