Skip to content

Commit f5e0f4d

Browse files
committed
Deprecate min_value() and max_value() for all integers
1 parent a80e63f commit f5e0f4d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libcore/num/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ Basic usage:
256256
$EndFeature, "
257257
```"),
258258
#[stable(feature = "rust1", since = "1.0.0")]
259+
#[rustc_deprecated(since = "1.41.0", reason = "replaced by associated constant MIN")]
259260
#[inline(always)]
260261
#[rustc_promotable]
261262
#[rustc_const_stable(feature = "const_min_value", since = "1.32.0")]
@@ -276,6 +277,7 @@ Basic usage:
276277
$EndFeature, "
277278
```"),
278279
#[stable(feature = "rust1", since = "1.0.0")]
280+
#[rustc_deprecated(since = "1.41.0", reason = "replaced by associated constant MAX")]
279281
#[inline(always)]
280282
#[rustc_promotable]
281283
#[rustc_const_stable(feature = "const_max_value", since = "1.32.0")]

0 commit comments

Comments
 (0)