about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-10-14 23:43:46 +0200
committerGitHub <noreply@github.com>2022-10-14 23:43:46 +0200
commit03a521b4fecf74d21278dab6a6034587da7b9dd9 (patch)
tree28203058d86c8f6931d8d3f8c68ccb09b6719be3 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent62a9c32848e2b2cddf86ce6f4338aa66c2201580 (diff)
parentc9948f5c5f5cc49a74f04e33a1b0cf6ed6a22b93 (diff)
downloadrust-03a521b4fecf74d21278dab6a6034587da7b9dd9.tar.gz
rust-03a521b4fecf74d21278dab6a6034587da7b9dd9.zip
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
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions