We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5bb523 commit f2a3290Copy full SHA for f2a3290
library/alloc/src/string.rs
@@ -2481,14 +2481,14 @@ impl<'a> Drain<'a> {
2481
}
2482
2483
2484
-#[unstable(feature = "string_drain_as_str", issue = "none")]
+#[stable(feature = "string_drain_as_ref", since = "1.48.0")]
2485
impl<'a> AsRef<str> for Drain<'a> {
2486
fn as_ref(&self) -> &str {
2487
self.as_str()
2488
2489
2490
2491
2492
impl<'a> AsRef<[u8]> for Drain<'a> {
2493
fn as_ref(&self) -> &[u8] {
2494
self.as_str().as_bytes()
0 commit comments