Skip to content

Commit f2a3290

Browse files
committed
Mark AsRef impls for String's Drain as stable.
Trait implementations effectively can't be #[unstable].
1 parent f5bb523 commit f2a3290

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/alloc/src/string.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2481,14 +2481,14 @@ impl<'a> Drain<'a> {
24812481
}
24822482
}
24832483

2484-
#[unstable(feature = "string_drain_as_str", issue = "none")]
2484+
#[stable(feature = "string_drain_as_ref", since = "1.48.0")]
24852485
impl<'a> AsRef<str> for Drain<'a> {
24862486
fn as_ref(&self) -> &str {
24872487
self.as_str()
24882488
}
24892489
}
24902490

2491-
#[unstable(feature = "string_drain_as_str", issue = "none")]
2491+
#[stable(feature = "string_drain_as_ref", since = "1.48.0")]
24922492
impl<'a> AsRef<[u8]> for Drain<'a> {
24932493
fn as_ref(&self) -> &[u8] {
24942494
self.as_str().as_bytes()

0 commit comments

Comments
 (0)