Skip to content

Commit

Permalink
Fix stability attributes of byte-to-string specialization
Browse files Browse the repository at this point in the history
  • Loading branch information
LingMan committed May 3, 2021
1 parent e327a82 commit eb9f168
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/alloc/src/string.rs
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit eb9f168

Please sign in to comment.