]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #51730 - MajorBreakfast:pin-get-mut-unchecked, r=withoutboats
authorPietro Albini <pietro@pietroalbini.org>
Tue, 26 Jun 2018 09:35:37 +0000 (11:35 +0200)
committerGitHub <noreply@github.com>
Tue, 26 Jun 2018 09:35:37 +0000 (11:35 +0200)
commitb71f6df5dd74804682a500ca7eb251e34e58b1cb
treeb7f5b03a6c2ec0f17c8500aaa7aa42a7f9327e13
parent1215965a12f94b0e304b41ebf71d17f988f42f96
parent3bcb85ee658e7a5362f5e381c337f07381f916dc
Rollup merge of #51730 - MajorBreakfast:pin-get-mut-unchecked, r=withoutboats

New safe associated functions for PinMut

- Add safe `get_mut` and `map`
- Rename unsafe equivalents to `get_mut_unchecked` and `map_unchecked`

The discussion about this starts [in this comment](https://github.com/rust-lang/rust/issues/49150#issuecomment-399604573) on the tracking issue.
src/libcore/option.rs