rust/src/liballoc
Corey Farwell 6ace8a76cb Rollup merge of #41064 - Gankro:ptr-redux, r=alexcrichton
refactor NonZero, Shared, and Unique APIs

Major difference is that I removed Deref impls, as apparently LLVM has
trouble maintaining metadata with a `&ptr -> &ptr` API. This was cited
as a blocker for ever stabilizing this API. It wasn't that ergonomic
anyway.

* Added `get` to NonZero to replace Deref impl
* Added `ptr` getter to Shared/Unique to replace Deref impl
* Added Unique's `get` and `get_mut` conveniences to Shared
* Deprecated `as_mut_ptr` on Shared in favour of `ptr`

Note that Shared used to primarily expose only `*const` but there isn't
a good justification for that, so I made it `*mut`.
2017-05-05 17:35:24 -04:00
..
arc.rs Rollup merge of #41064 - Gankro:ptr-redux, r=alexcrichton 2017-05-05 17:35:24 -04:00
boxed_test.rs Direct conversions between slices and boxes. 2017-02-06 18:53:13 -05:00
boxed.rs Deprecate heap::EMPTY in favour of Unique::empty or otherwise. 2017-05-04 23:54:54 -04:00
Cargo.toml
heap.rs Deprecate heap::EMPTY in favour of Unique::empty or otherwise. 2017-05-04 23:54:54 -04:00
lib.rs Update stage0 bootstrap compiler 2017-04-29 12:11:14 -07:00
macros.rs
oom.rs
raw_vec.rs Deprecate heap::EMPTY in favour of Unique::empty or otherwise. 2017-05-04 23:54:54 -04:00
rc.rs fallout from NonZero/Unique/Shared changes 2017-05-04 23:54:54 -04:00
str.rs More methods for str boxes. 2017-04-24 17:51:49 -04:00