diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2018-11-11 00:21:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-11 00:21:23 +0100 |
| commit | 0f1c1eb48071d4ea02429ae5136444755b299fb7 (patch) | |
| tree | 28c5944fcca84ec9e8cfedc9bce84ad492ea7518 /src/libcore | |
| parent | 4c50964c5f015f48006b0722545424f80158eea2 (diff) | |
| parent | f4c9dd55d6446f6308dc70ab8f88129a87c5daf1 (diff) | |
| download | rust-0f1c1eb48071d4ea02429ae5136444755b299fb7.tar.gz rust-0f1c1eb48071d4ea02429ae5136444755b299fb7.zip | |
Rollup merge of #55828 - oli-obk:promotion_strikes_again, r=eddyb
Add missing `rustc_promotable` attribute to unsigned `min_value` and `max_value` cc @pnkfelix fixes #55806
Diffstat (limited to 'src/libcore')
| -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 090147c9fe4..30b7b454684 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 } } |
