diff options
| author | bors <bors@rust-lang.org> | 2018-06-17 07:49:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-06-17 07:49:25 +0000 |
| commit | aec00f97e1cdcea2b079e209a7e759201ba6ca7c (patch) | |
| tree | 4ed19581adc5d794890fbf515848d2432b96a559 /src/libcore/tests/lib.rs | |
| parent | 0f8f4903f73a21d7f408870551c08acd051abeb0 (diff) | |
| parent | 2a999b4b525ed8b4f735e233cc065b292d3eeb03 (diff) | |
| download | rust-aec00f97e1cdcea2b079e209a7e759201ba6ca7c.tar.gz rust-aec00f97e1cdcea2b079e209a7e759201ba6ca7c.zip | |
Auto merge of #51466 - joshlf:ref-split, r=dtolnay
Add Ref/RefMut map_split method As proposed [here](https://internals.rust-lang.org/t/make-refcell-support-slice-splitting/7707). TLDR: Add a `map_split` method that allows multiple `RefMut`s to exist simultaneously so long as they refer to non-overlapping regions of the original `RefCell`. This is useful for things like the slice `split_at_mut` method.
Diffstat (limited to 'src/libcore/tests/lib.rs')
| -rw-r--r-- | src/libcore/tests/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/tests/lib.rs b/src/libcore/tests/lib.rs index 11765e3ef56..87612b7e818 100644 --- a/src/libcore/tests/lib.rs +++ b/src/libcore/tests/lib.rs @@ -27,6 +27,7 @@ #![feature(pattern)] #![feature(range_is_empty)] #![feature(raw)] +#![feature(refcell_map_split)] #![feature(refcell_replace_swap)] #![feature(slice_patterns)] #![feature(slice_rotate)] |
