diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2021-04-11 11:36:35 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2021-04-12 16:32:57 +0200 |
| commit | b44ae964e2086b280a250dea62abad29164eea58 (patch) | |
| tree | 4e1150c3205457d647430db75d3a3357a7278b2e | |
| parent | d1e23b8af8615a0b0bbb22f11674b977d2ecdd54 (diff) | |
| download | rust-b44ae964e2086b280a250dea62abad29164eea58.tar.gz rust-b44ae964e2086b280a250dea62abad29164eea58.zip | |
Mark Duration::is_zero as rustc_const_stable.
| -rw-r--r-- | library/core/src/time.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/time.rs b/library/core/src/time.rs index f6d480ae54b..fa6a6c2cccc 100644 --- a/library/core/src/time.rs +++ b/library/core/src/time.rs @@ -280,6 +280,7 @@ impl Duration { /// assert!(!Duration::from_secs(1).is_zero()); /// ``` #[stable(feature = "duration_zero", since = "1.53.0")] + #[rustc_const_stable(feature = "duration_zero", since = "1.53.0")] #[inline] pub const fn is_zero(&self) -> bool { self.secs == 0 && self.nanos == 0 |
