]> git.lizzy.rs Git - rust.git/commit
Auto merge of #41096 - clarcharr:as_bytes_mut, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 11 Apr 2017 12:13:49 +0000 (12:13 +0000)
committerbors <bors@rust-lang.org>
Tue, 11 Apr 2017 12:13:49 +0000 (12:13 +0000)
commitc58c928e658d2e45f816fd05796a964aa83759da
treecb73be229a48a5d32ecdaadcc34939e87d8dc0a3
parent6edc59685382d3ec0b6b89b05897a22a597c48a1
parenta2b28be3f8f2920d39c9c87fef968d3885753ba4
Auto merge of #41096 - clarcharr:as_bytes_mut, r=alexcrichton

Reduce str transmutes, add mut versions of methods.

When I was working on the various parts involved in #40380 one of the comments I got was the excess of transmutes necessary to make the changes work. This is part of a set of multiple changes I'd like to offer to fix this problem.

I think that having these methods is reasonable because they're already possible via transmutes, and it makes the code that uses them safer. I can also add `pub(crate)` to these methods for now if the libs team would rather not expose them to the public without an RFC.
src/doc/unstable-book/src/SUMMARY.md
src/libcollections/lib.rs