rust/library/core
Jacob Pratt c3120ff03a
Rollup merge of #151164 - euler-gamma-golden-ratio, r=jhpratt
Stabilise `EULER_GAMMA` and `GOLDEN_RATIO` constants for `f32` and `f64`.

Tracking issue: rust-lang/rust#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`.
2026-01-15 19:35:48 -05:00
..
src Rollup merge of #151164 - euler-gamma-golden-ratio, r=jhpratt 2026-01-15 19:35:48 -05:00
Cargo.toml add autodiff examples 2025-11-16 23:35:37 -05:00