Skip to content

Commit

Permalink
Rollup merge of #103570 - lukas-code:stabilize-ilog, r=scottmcm
Browse files Browse the repository at this point in the history
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 rust-lang/rust#70887 (tracking issue)

~~blocked on FCP finishing: rust-lang/rust#70887 (comment)
FCP finished: rust-lang/rust#70887 (comment)
  • Loading branch information
Dylan-DPC authored Nov 9, 2022
2 parents f0a2007 + 2302ad0 commit 0a08bb0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#![feature(never_type)]
#![feature(try_blocks)]
#![feature(io_error_more)]
#![feature(int_log)]
#![feature(variant_count)]
#![feature(yeet_expr)]
#![feature(is_some_and)]
Expand Down
1 change: 0 additions & 1 deletion tests/pass/integer-ops.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//@compile-flags: -Coverflow-checks=off
#![feature(int_log)]
#![allow(arithmetic_overflow)]

pub fn main() {
Expand Down

0 comments on commit 0a08bb0

Please sign in to comment.