about summary refs log tree commit diff
path: root/src/liballoc/string.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-05-23 08:37:18 +0200
committerGitHub <noreply@github.com>2019-05-23 08:37:18 +0200
commitb2299b268986f1de6a23611c220f9788f592ca40 (patch)
treed4de4a48555d5bcc089845e0231e8a55bb6184c3 /src/liballoc/string.rs
parent4ab593984c259c47365ef0aa07cf9ea9f884d900 (diff)
parent8a22bc3b30e81568db25cf57aa9e7629bfa449c7 (diff)
downloadrust-b2299b268986f1de6a23611c220f9788f592ca40.tar.gz
rust-b2299b268986f1de6a23611c220f9788f592ca40.zip
Rollup merge of #61057 - sfackler:revert-next-back, r=alexcrichton
Revert "Add implementations of last in terms of next_back on a bunch of DoubleEndedIterators."

This changed observable behavior for several iterator types.

r? @alexcrichton
Diffstat (limited to 'src/liballoc/string.rs')
-rw-r--r--src/liballoc/string.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs
index e74d37c1c2b..7f7722548f5 100644
--- a/src/liballoc/string.rs
+++ b/src/liballoc/string.rs
@@ -2385,10 +2385,6 @@ impl Iterator for Drain<'_> {
     fn size_hint(&self) -> (usize, Option<usize>) {
         self.iter.size_hint()
     }
-    #[inline]
-    fn last(mut self) -> Option<char> {
-        self.next_back()
-    }
 }
 
 #[stable(feature = "drain", since = "1.6.0")]