Skip to content

replace deprecated std::f64::EPSILON with f64::EPSILON#24067

Merged
MichaReiser merged 1 commit intoastral-sh:mainfrom
WilliamCollishaw:fix/deprecated-f64-epsilon
Mar 20, 2026
Merged

replace deprecated std::f64::EPSILON with f64::EPSILON#24067
MichaReiser merged 1 commit intoastral-sh:mainfrom
WilliamCollishaw:fix/deprecated-f64-epsilon

Conversation

@WilliamCollishaw
Copy link
Contributor

Summary

Replaces usage of the deprecated std::f64::EPSILON constant with the modern associated constant introduced in Rust 1.43.0.
Sources:

Test Plan

Ran Ruff's test suite using CONTRIBUTING.md as a guide.

@astral-sh-bot
Copy link

astral-sh-bot bot commented Mar 20, 2026

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@MichaReiser MichaReiser added the internal An internal refactor or improvement label Mar 20, 2026
@MichaReiser MichaReiser changed the title refactor(float.rs): replace deprecated std::f64::EPSILON with associated constant replace deprecated std::f64::EPSILON with f64::EPSILON Mar 20, 2026
@MichaReiser MichaReiser merged commit 445a59d into astral-sh:main Mar 20, 2026
42 checks passed
@WilliamCollishaw WilliamCollishaw deleted the fix/deprecated-f64-epsilon branch March 20, 2026 16:22
carljm added a commit that referenced this pull request Mar 25, 2026
* main:
  [`flake8-bandit`] Check tuple arguments for partial paths in `S607` (#24080)
  [ty] Update Salsa (#24081)
  Update Rust toolchain to 1.94 and MSRV to 1.92 (#24076)
  [ty] Move ruffen-docs formatting config to a `ruff.toml` config file (#24074)
  [ty] `reveal_type` diagnostics in unreachable code (#24070)
  [ty] Improve keyword argument narrowing for nested dictionaries (#24010)
  [ty] Preserve blank lines between comments and imports in add-import action (#24066)
  [ty] Add diagnostic hint for invalid assignments involving invariant generics (#24032)
  Clarify `extend-ignore` and `extend-select` settings documentation (#24064)
  [ty] Batch changes to watched paths (#24045)
  replace deprecated `std::f64::EPSILON` with `f64::EPSILON` (#24067)
  [ty] Fix untracked reads in Salsa queries that can lead to backdating panics (#24051)
  [ty] Unions/intersections of gradual types should be assignable to `Never` (#24056)
  Fix incorrect path for ty_python_semantic in fuzzer (#24052)
  Bump 0.15.7 (#24049)
  [ty] ecosystem-analyzer: Fail on newly panicking projects (#24043)
  Don't show noqa hover for non-Python documents (#24040)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants