diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2018-11-09 17:55:24 +0100 |
|---|---|---|
| committer | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2018-11-09 17:55:24 +0100 |
| commit | f4c9dd55d6446f6308dc70ab8f88129a87c5daf1 (patch) | |
| tree | 1915b1c2a13594fc31643d1a913a1fad1abc79bb /src/libcore/num | |
| parent | 36a50c29f6c5c386fba6ab685818755ac55152e5 (diff) | |
| download | rust-f4c9dd55d6446f6308dc70ab8f88129a87c5daf1.tar.gz rust-f4c9dd55d6446f6308dc70ab8f88129a87c5daf1.zip | |
Add missing `rustc_promotable` attribute to unsigned `min_value` and `max_value`
Diffstat (limited to 'src/libcore/num')
| -rw-r--r-- | src/libcore/num/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index c6cbeea5a0e..b71b8e7418d 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -2152,6 +2152,7 @@ Basic usage: ", $Feature, "assert_eq!(", stringify!($SelfT), "::min_value(), 0);", $EndFeature, " ```"), #[stable(feature = "rust1", since = "1.0.0")] + #[rustc_promotable] #[inline] pub const fn min_value() -> Self { 0 } } @@ -2168,6 +2169,7 @@ Basic usage: stringify!($MaxV), ");", $EndFeature, " ```"), #[stable(feature = "rust1", since = "1.0.0")] + #[rustc_promotable] #[inline] pub const fn max_value() -> Self { !0 } } |
