From eb9f168e1e8a447e24b2cda2a57d7ba05d6ab71e Mon Sep 17 00:00:00 2001 From: LingMan Date: Mon, 3 May 2021 13:00:34 +0200 Subject: [PATCH] Fix stability attributes of byte-to-string specialization --- library/alloc/src/string.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs index 509ff9ce4d1..4aeb3de6592 100644 --- a/library/alloc/src/string.rs +++ b/library/alloc/src/string.rs @@ -2288,7 +2288,7 @@ impl ToString for char { } } -#[stable(feature = "u8_to_string_specialization", since = "1.999.0")] +#[stable(feature = "u8_to_string_specialization", since = "1.54.0")] impl ToString for u8 { #[inline] fn to_string(&self) -> String { @@ -2307,7 +2307,7 @@ impl ToString for u8 { } } -#[stable(feature = "i8_to_string_specialization", since = "1.999.0")] +#[stable(feature = "i8_to_string_specialization", since = "1.54.0")] impl ToString for i8 { #[inline] fn to_string(&self) -> String {