@@ -102,7 +102,6 @@ impl TimeDelta {
102102 /// Panics when the duration is out of bounds.
103103 #[ inline]
104104 #[ must_use]
105- #[ deprecated( since = "0.4.35" , note = "Use `TimeDelta::try_weeks` instead" ) ]
106105 pub const fn weeks ( weeks : i64 ) -> TimeDelta {
107106 expect ( TimeDelta :: try_weeks ( weeks) , "TimeDelta::weeks out of bounds" )
108107 }
@@ -130,7 +129,6 @@ impl TimeDelta {
130129 /// Panics when the `TimeDelta` would be out of bounds.
131130 #[ inline]
132131 #[ must_use]
133- #[ deprecated( since = "0.4.35" , note = "Use `TimeDelta::try_days` instead" ) ]
134132 pub const fn days ( days : i64 ) -> TimeDelta {
135133 expect ( TimeDelta :: try_days ( days) , "TimeDelta::days out of bounds" )
136134 }
@@ -157,7 +155,6 @@ impl TimeDelta {
157155 /// Panics when the `TimeDelta` would be out of bounds.
158156 #[ inline]
159157 #[ must_use]
160- #[ deprecated( since = "0.4.35" , note = "Use `TimeDelta::try_hours` instead" ) ]
161158 pub const fn hours ( hours : i64 ) -> TimeDelta {
162159 expect ( TimeDelta :: try_hours ( hours) , "TimeDelta::hours out of bounds" )
163160 }
@@ -183,7 +180,6 @@ impl TimeDelta {
183180 /// Panics when the `TimeDelta` would be out of bounds.
184181 #[ inline]
185182 #[ must_use]
186- #[ deprecated( since = "0.4.35" , note = "Use `TimeDelta::try_minutes` instead" ) ]
187183 pub const fn minutes ( minutes : i64 ) -> TimeDelta {
188184 expect ( TimeDelta :: try_minutes ( minutes) , "TimeDelta::minutes out of bounds" )
189185 }
@@ -208,7 +204,6 @@ impl TimeDelta {
208204 /// (in this context, this is the same as `i64::MIN / 1_000` due to rounding).
209205 #[ inline]
210206 #[ must_use]
211- #[ deprecated( since = "0.4.35" , note = "Use `TimeDelta::try_seconds` instead" ) ]
212207 pub const fn seconds ( seconds : i64 ) -> TimeDelta {
213208 expect ( TimeDelta :: try_seconds ( seconds) , "TimeDelta::seconds out of bounds" )
214209 }
@@ -232,7 +227,6 @@ impl TimeDelta {
232227 /// Panics when the `TimeDelta` would be out of bounds, i.e. when `milliseconds` is more than
233228 /// `i64::MAX` or less than `-i64::MAX`. Notably, this is not the same as `i64::MIN`.
234229 #[ inline]
235- #[ deprecated( since = "0.4.35" , note = "Use `TimeDelta::try_milliseconds` instead" ) ]
236230 pub const fn milliseconds ( milliseconds : i64 ) -> TimeDelta {
237231 expect ( TimeDelta :: try_milliseconds ( milliseconds) , "TimeDelta::milliseconds out of bounds" )
238232 }
@@ -688,7 +682,6 @@ mod tests {
688682 }
689683
690684 #[ test]
691- #[ allow( deprecated) ]
692685 #[ should_panic( expected = "TimeDelta::seconds out of bounds" ) ]
693686 fn test_duration_seconds_max_overflow_panic ( ) {
694687 let _ = TimeDelta :: seconds ( i64:: MAX / 1_000 + 1 ) ;
@@ -710,7 +703,6 @@ mod tests {
710703 }
711704
712705 #[ test]
713- #[ allow( deprecated) ]
714706 #[ should_panic( expected = "TimeDelta::seconds out of bounds" ) ]
715707 fn test_duration_seconds_min_underflow_panic ( ) {
716708 let _ = TimeDelta :: seconds ( -i64:: MAX / 1_000 - 1 ) ;
@@ -773,7 +765,6 @@ mod tests {
773765 }
774766
775767 #[ test]
776- #[ allow( deprecated) ]
777768 #[ should_panic( expected = "TimeDelta::milliseconds out of bounds" ) ]
778769 fn test_duration_milliseconds_min_underflow_panic ( ) {
779770 // Here we ensure that trying to create a value one millisecond below the
0 commit comments