Skip to content

Commit 0a08bb0

Browse files
authored
Rollup merge of rust-lang#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 rust-lang#70887 (tracking issue) ~~blocked on FCP finishing: rust-lang#70887 (comment) FCP finished: rust-lang#70887 (comment)
2 parents f0a2007 + 2302ad0 commit 0a08bb0

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#![feature(never_type)]
44
#![feature(try_blocks)]
55
#![feature(io_error_more)]
6-
#![feature(int_log)]
76
#![feature(variant_count)]
87
#![feature(yeet_expr)]
98
#![feature(is_some_and)]

tests/pass/integer-ops.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@compile-flags: -Coverflow-checks=off
2-
#![feature(int_log)]
32
#![allow(arithmetic_overflow)]
43

54
pub fn main() {

0 commit comments

Comments
 (0)