diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-05-23 08:37:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-23 08:37:18 +0200 |
| commit | b2299b268986f1de6a23611c220f9788f592ca40 (patch) | |
| tree | d4de4a48555d5bcc089845e0231e8a55bb6184c3 /src/liballoc/string.rs | |
| parent | 4ab593984c259c47365ef0aa07cf9ea9f884d900 (diff) | |
| parent | 8a22bc3b30e81568db25cf57aa9e7629bfa449c7 (diff) | |
| download | rust-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.rs | 4 |
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")] |
