Skip to content

Commit

Permalink
Fix vec::mut_slice
Browse files Browse the repository at this point in the history
  • Loading branch information
june0cho committed May 29, 2013
1 parent e946b4f commit 14d59af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libstd/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2347,16 +2347,16 @@ impl<T:Eq> OwnedEqVector<T> for ~[T] {
}

pub trait MutableVector<'self, T> {
fn mut_slice(&mut self, start: uint, end: uint) -> &'self mut [T];
fn mut_slice(self, start: uint, end: uint) -> &'self mut [T];

unsafe fn unsafe_mut_ref(&self, index: uint) -> *mut T;
unsafe fn unsafe_set(&self, index: uint, val: T);
}

impl<'self,T> MutableVector<'self, T> for &'self mut [T] {
#[inline]
fn mut_slice(&mut self, start: uint, end: uint) -> &'self mut [T] {
mut_slice(*self, start, end)
fn mut_slice(self, start: uint, end: uint) -> &'self mut [T] {
mut_slice(self, start, end)
}

#[inline(always)]
Expand Down

5 comments on commit 14d59af

@bors
Copy link
Contributor

@bors bors commented on 14d59af May 29, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from pcwalton
at june0cho@14d59af

@bors
Copy link
Contributor

@bors bors commented on 14d59af May 29, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging june0cho/rust/issue5984 = 14d59af into auto

@bors
Copy link
Contributor

@bors bors commented on 14d59af May 29, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

june0cho/rust/issue5984 = 14d59af merged ok, testing candidate = 562069c

@bors
Copy link
Contributor

@bors bors commented on 14d59af May 29, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 14d59af May 29, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding incoming to auto = 562069c

Please sign in to comment.