Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #103059 - beetrees:duration-from-negative-zero, r=thomcc
Fix `Duration::{try_,}from_secs_f{32,64}(-0.0)` Make `Duration::{try_,}from_secs_f{32,64}(-0.0)` return `Duration::ZERO` (as they did before #90247) instead of erroring/panicking. I'll update this PR to remove the `#![feature(duration_checked_float)]` if #102271 is merged before this PR. Tracking issue for `try_from_secs_f{32,64}`: #83400
- Loading branch information