Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up`std::vec::IntoIter::as_mut_slice` borrows `&self`, returns `&mut` of contents. #39465
Comments
steveklabnik
added
A-libs
I-nominated
I-unsound 💥
T-libs
labels
Feb 2, 2017
This comment has been minimized.
This comment has been minimized.
|
Awesome! |
This comment has been minimized.
This comment has been minimized.
|
I suggest we change it to &mut and run it through crater to see the impact. We can change it or immediately deprecate it. We can make a point release or wait until 1.16. |
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 2, 2017
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 2, 2017
alexcrichton
referenced this issue
Feb 2, 2017
Merged
std: Fix IntoIter::as_mut_slice's signature #39466
sfackler
referenced this issue
Feb 2, 2017
Merged
Introduce `as_slice`/`as_mut_slice` methods on `std::vec::IntoIter` struct. #35447
bors
added a commit
that referenced
this issue
Feb 3, 2017
bors
closed this
in
#39466
Feb 3, 2017
king6cong
added a commit
to king6cong/rust
that referenced
this issue
Feb 3, 2017
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 3, 2017
llogiq
referenced this issue
Feb 3, 2017
Closed
Lint fns that take immutable refs and return mutables #1507
brson
added a commit
to brson/rust
that referenced
this issue
Feb 4, 2017
brson
added a commit
to brson/rust
that referenced
this issue
Feb 4, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
christophebiocca commentedFeb 2, 2017
/u/dbauppon reddit points out that this method can be called multiple times and result in getting multiple&mut [T]of the exact same data.