rust/src/liballoc
bors d5b69d4670 Auto merge of #45306 - whitequark:ref_slice, r=alexcrichton
Bring back slice::ref_slice as slice::from_ref.

These functions were deprecated and removed in 1.5, but such simple
functionality shouldn't require using unsafe code, and it isn't
cluttering libstd too much.

The original removal was quite contentious (see #27774), since then
we've had precedent for including such nuggets of functionality (see rust-lang/rfcs#1789),
and @nikomatsakis has provided a lot of use cases in https://github.com/rust-lang/rfcs/pull/1789#issuecomment-314640034.
Hence this PR.

I'm not too sure what to do with stability, feel free to correct me.
It seems pointless to go through stabilization for these functions though.

cc @aturon
2017-11-02 00:06:16 +00:00
..
benches
btree Implement entry_and_modify 2017-10-06 09:10:31 +01:00
tests Add support for ..= syntax 2017-09-22 22:05:18 +02:00
allocator.rs Fix most rendering warnings from switching to CommonMark 2017-10-20 15:29:35 -04:00
arc.rs Modify Rc/Arc language around mutability 2017-10-05 16:54:56 -04:00
binary_heap.rs address some FIXMEs whose associated issues were marked as closed 2017-09-30 11:33:47 +03:00
borrow.rs
boxed_test.rs
boxed.rs Auto merge of #44877 - nvzqz:box-conversions, r=alexcrichton 2017-10-10 11:07:25 +00:00
Cargo.toml
fmt.rs Fix most rendering warnings from switching to CommonMark 2017-10-20 15:29:35 -04:00
heap.rs std: Mark allocation functions as nounwind 2017-08-28 08:06:52 -07:00
lib.rs De-stabilize core::slice::{from_ref, from_ref_mut}. 2017-11-01 22:21:29 +00:00
linked_list.rs address some FIXMEs whose associated issues were marked as closed 2017-09-30 11:33:47 +03:00
macros.rs Implement Arc/Rc raw pointer conversions for ?Sized 2017-09-16 16:34:13 -07:00
range.rs
raw_vec.rs Rollup merge of #43891 - Fourchaux:master, r=steveklabnik 2017-08-17 10:44:07 -04:00
rc.rs Modify Rc/Arc language around mutability 2017-10-05 16:54:56 -04:00
slice.rs De-stabilize core::slice::{from_ref, from_ref_mut}. 2017-11-01 22:21:29 +00:00
str.rs added non trivial examples of closures for str::find 2017-10-17 23:51:27 -05:00
string.rs Updated tracking issue for String::splice and its unstable-book entry 2017-09-17 10:41:24 +02:00
vec_deque.rs address some FIXMEs whose associated issues were marked as closed 2017-09-30 11:33:47 +03:00
vec.rs usize index message for vec 2017-10-09 14:45:41 +02:00