Skip to content

Commit

Permalink
Auto merge of #39493 - alexcrichton:beta-next, r=aturon
Browse files Browse the repository at this point in the history
[beta] std: Fix IntoIter::as_mut_slice's signature

This is a backport of #39466 to beta
  • Loading branch information
bors committed Feb 6, 2017
2 parents 762a037 + 2a935f5 commit 90423c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcollections/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1958,7 +1958,7 @@ impl<T> IntoIter<T> {
/// assert_eq!(into_iter.next().unwrap(), 'z');
/// ```
#[stable(feature = "vec_into_iter_as_slice", since = "1.15.0")]
pub fn as_mut_slice(&self) -> &mut [T] {
pub fn as_mut_slice(&mut self) -> &mut [T] {
unsafe {
slice::from_raw_parts_mut(self.ptr as *mut T, self.len())
}
Expand Down

0 comments on commit 90423c9

Please sign in to comment.