]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #82179 - mbartlett21:patch-5, r=joshtriplett
authorYuki Okushi <jtitor@2k36.org>
Tue, 15 Jun 2021 08:40:03 +0000 (17:40 +0900)
committerGitHub <noreply@github.com>
Tue, 15 Jun 2021 08:40:03 +0000 (17:40 +0900)
Add functions `Duration::try_from_secs_{f32, f64}`

These functions allow constructing a Duration from a floating point value that could be out of range without panicking.

Tracking issue: #83400

1  2 
library/core/src/time.rs
library/std/src/error.rs
library/std/src/lib.rs

Simple merge
Simple merge
index 6f94a0599ed3117f911d00ecfc7c035532aea7e8,a42d88ef714270c1bda586a77dc7d0cf7630d40e..9fd4bce91148c10ce7f1906e8d7b5e7e63a0eb31
  #![feature(doc_cfg)]
  #![feature(doc_keyword)]
  #![feature(doc_masked)]
 -#![feature(doc_spotlight)]
 +#![feature(doc_notable_trait)]
  #![feature(dropck_eyepatch)]
+ #![feature(duration_checked_float)]
  #![feature(duration_constants)]
 -#![feature(duration_zero)]
 +#![feature(edition_panic)]
  #![feature(exact_size_is_empty)]
  #![feature(exhaustive_patterns)]
  #![feature(extend_one)]