Skip to content

Commit 6d2b367

Browse files
authored
Rollup merge of rust-lang#69249 - LeSeulArtichaut:stabilize-logs-consts, r=sfackler
Stabilize {f32, f64}::{LOG2_10, LOG10_2} Following the decision to stabilize `LOG2_10` and `LOG10_2` in rust-lang#50540 (comment). Closes rust-lang#50540. r? @sfackler
2 parents 82d711f + 2ae493a commit 6d2b367

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/libcore/num/f32.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,15 @@ pub mod consts {
130130
pub const LOG2_E: f32 = 1.44269504088896340735992468100189214_f32;
131131

132132
/// log<sub>2</sub>(10)
133-
#[unstable(feature = "extra_log_consts", issue = "50540")]
133+
#[stable(feature = "extra_log_consts", since = "1.43.0")]
134134
pub const LOG2_10: f32 = 3.32192809488736234787031942948939018_f32;
135135

136136
/// log<sub>10</sub>(e)
137137
#[stable(feature = "rust1", since = "1.0.0")]
138138
pub const LOG10_E: f32 = 0.434294481903251827651128918916605082_f32;
139139

140140
/// log<sub>10</sub>(2)
141-
#[unstable(feature = "extra_log_consts", issue = "50540")]
141+
#[stable(feature = "extra_log_consts", since = "1.43.0")]
142142
pub const LOG10_2: f32 = 0.301029995663981195213738894724493027_f32;
143143

144144
/// ln(2)

src/libcore/num/f64.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,15 @@ pub mod consts {
126126
pub const E: f64 = 2.71828182845904523536028747135266250_f64;
127127

128128
/// log<sub>2</sub>(10)
129-
#[unstable(feature = "extra_log_consts", issue = "50540")]
129+
#[stable(feature = "extra_log_consts", since = "1.43.0")]
130130
pub const LOG2_10: f64 = 3.32192809488736234787031942948939018_f64;
131131

132132
/// log<sub>2</sub>(e)
133133
#[stable(feature = "rust1", since = "1.0.0")]
134134
pub const LOG2_E: f64 = 1.44269504088896340735992468100189214_f64;
135135

136136
/// log<sub>10</sub>(2)
137-
#[unstable(feature = "extra_log_consts", issue = "50540")]
137+
#[stable(feature = "extra_log_consts", since = "1.43.0")]
138138
pub const LOG10_2: f64 = 0.301029995663981195213738894724493027_f64;
139139

140140
/// log<sub>10</sub>(e)

0 commit comments

Comments
 (0)