Skip to content

Commit 4e1024f

Browse files
committed
core: Put stability attributes all over the slice module
Much of this is as discussed[1]. Many things are marked [1]: https://github.com/rust-lang/meeting-minutes/blob/master/Meeting-API-review-2014-08-06.md
1 parent a4b354c commit 4e1024f

File tree

2 files changed

+74
-0
lines changed

2 files changed

+74
-0
lines changed

src/libcollections/ringbuf.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ pub struct MutItems<'a, T> {
362362

363363
impl<'a, T> Iterator<&'a mut T> for MutItems<'a, T> {
364364
#[inline]
365+
#[allow(deprecated)] // mut_shift_ref
365366
fn next(&mut self) -> Option<&'a mut T> {
366367
if self.nelts == 0 {
367368
return None;
@@ -384,6 +385,7 @@ impl<'a, T> Iterator<&'a mut T> for MutItems<'a, T> {
384385

385386
impl<'a, T> DoubleEndedIterator<&'a mut T> for MutItems<'a, T> {
386387
#[inline]
388+
#[allow(deprecated)] // mut_shift_ref
387389
fn next_back(&mut self) -> Option<&'a mut T> {
388390
if self.nelts == 0 {
389391
return None;

0 commit comments

Comments
 (0)