Rollup merge of #84858 - LingMan:patch-1, r=JohnTitor

Fix stability attributes of byte-to-string specialization
This commit is contained in:
Guillaume Gomez 2021-05-03 15:08:11 +02:00 committed by GitHub
commit 55e21e8cca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {