Stabilise EULER_GAMMA and GOLDEN_RATIO constants for f32 and f64.#151164
Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom Jan 16, 2026
Merged
Stabilise EULER_GAMMA and GOLDEN_RATIO constants for f32 and f64.#151164rust-bors[bot] merged 1 commit intorust-lang:mainfrom
EULER_GAMMA and GOLDEN_RATIO constants for f32 and f64.#151164rust-bors[bot] merged 1 commit intorust-lang:mainfrom
Conversation
Collaborator
14 tasks
Contributor
Author
|
@rustbot label +T-libs-api -T-libs r? libs-api |
This comment has been minimized.
This comment has been minimized.
8f7d4ee to
7f9237d
Compare
This comment has been minimized.
This comment has been minimized.
7f9237d to
6cd4359
Compare
traviscross
approved these changes
Jan 15, 2026
Member
|
@bors r+ rollup |
Contributor
rust-bors bot
pushed a commit
that referenced
this pull request
Jan 16, 2026
Rollup of 5 pull requests Successful merges: - #150607 (Add amdgpu_dispatch_ptr intrinsic) - #150611 (Unify and deduplicate From<T> float tests) - #151082 (Silence unused type param error on struct parse error) - #151159 (Tidying up `tests/ui/issues` 15 tests [8/N]) - #151164 (Stabilise `EULER_GAMMA` and `GOLDEN_RATIO` constants for `f32` and `f64`.) r? @ghost
rust-timer
added a commit
that referenced
this pull request
Jan 16, 2026
Rollup merge of #151164 - euler-gamma-golden-ratio, r=jhpratt Stabilise `EULER_GAMMA` and `GOLDEN_RATIO` constants for `f32` and `f64`. Tracking issue: #146939 This PR renames the `EGAMMA` and `PHI` constants to `EULER_GAMMA` and `GOLDEN_RATIO` – respectively – and stabilises them under these names for `f32` and `f64`: ```rust // core::f16::consts pub const GOLDEN_RATIO: f16; pub const EULER_GAMMA: f16; // core::f32::consts pub const GOLDEN_RATIO: f32; pub const EULER_GAMMA: f32; // core::f64::consts pub const GOLDEN_RATIO: f64; pub const EULER_GAMMA: f64; // core::f128::consts pub const GOLDEN_RATIO: f128; pub const EULER_GAMMA: f128; ``` The feature gate for the stabilised items is also changed to `euler_gamma_golden_ratio`.
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tracking issue: #146939
This PR renames the
EGAMMAandPHIconstants toEULER_GAMMAandGOLDEN_RATIO– respectively – and stabilises them under these names forf32andf64:The feature gate for the stabilised items is also changed to
euler_gamma_golden_ratio.