diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2020-09-19 08:23:23 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2020-09-19 08:23:23 +0200 |
| commit | 15eb638dc9c9f663ab9e596a838c33821ae7f772 (patch) | |
| tree | 415d30d8a132560264bfe799eecc21a426a88526 | |
| parent | 829019d4043a6e9dd1305113f43b30fc8415893d (diff) | |
| download | rust-15eb638dc9c9f663ab9e596a838c33821ae7f772.tar.gz rust-15eb638dc9c9f663ab9e596a838c33821ae7f772.zip | |
Add tracking issue number for string_drain_as_str.
| -rw-r--r-- | library/alloc/src/string.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs index b9506281ed6..ed6443da830 100644 --- a/library/alloc/src/string.rs +++ b/library/alloc/src/string.rs @@ -2475,21 +2475,21 @@ impl<'a> Drain<'a> { /// let _ = drain.next().unwrap(); /// assert_eq!(drain.as_str(), "bc"); /// ``` - #[unstable(feature = "string_drain_as_str", issue = "none")] // Note: uncomment AsRef impls below when stabilizing. + #[unstable(feature = "string_drain_as_str", issue = "76905")] // Note: uncomment AsRef impls below when stabilizing. pub fn as_str(&self) -> &str { self.iter.as_str() } } // Uncomment when stabilizing `string_drain_as_str`. -// #[unstable(feature = "string_drain_as_str", issue = "none")] +// #[unstable(feature = "string_drain_as_str", issue = "76905")] // impl<'a> AsRef<str> for Drain<'a> { // fn as_ref(&self) -> &str { // self.as_str() // } // } // -// #[unstable(feature = "string_drain_as_str", issue = "none")] +// #[unstable(feature = "string_drain_as_str", issue = "76905")] // impl<'a> AsRef<[u8]> for Drain<'a> { // fn as_ref(&self) -> &[u8] { // self.as_str().as_bytes() |
