]> git.lizzy.rs Git - rust.git/commitdiff
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)
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.

1  2 
src/libcore/option.rs

Simple merge