diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs index a164de8b4d387..047ae942cd9a2 100644 --- a/library/alloc/src/string.rs +++ b/library/alloc/src/string.rs @@ -2481,14 +2481,14 @@ impl<'a> Drain<'a> { } } -#[unstable(feature = "string_drain_as_str", issue = "none")] +#[stable(feature = "string_drain_as_ref", since = "1.48.0")] impl<'a> AsRef for Drain<'a> { fn as_ref(&self) -> &str { self.as_str() } } -#[unstable(feature = "string_drain_as_str", issue = "none")] +#[stable(feature = "string_drain_as_ref", since = "1.48.0")] impl<'a> AsRef<[u8]> for Drain<'a> { fn as_ref(&self) -> &[u8] { self.as_str().as_bytes()