Skip to content

Commit b44ae96

Browse files
committed
Mark Duration::is_zero as rustc_const_stable.
1 parent d1e23b8 commit b44ae96

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/time.rs

+1
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ impl Duration {
280280
/// assert!(!Duration::from_secs(1).is_zero());
281281
/// ```
282282
#[stable(feature = "duration_zero", since = "1.53.0")]
283+
#[rustc_const_stable(feature = "duration_zero", since = "1.53.0")]
283284
#[inline]
284285
pub const fn is_zero(&self) -> bool {
285286
self.secs == 0 && self.nanos == 0

0 commit comments

Comments
 (0)