diff options
| author | Alexis Beingessner <a.beingessner@gmail.com> | 2017-04-04 12:31:03 -0400 |
|---|---|---|
| committer | Alexis Beingessner <a.beingessner@gmail.com> | 2017-05-04 14:56:02 -0400 |
| commit | 6e2efe3aa477bdc8d7ccdb904523ad18d612bbb6 (patch) | |
| tree | 3a4b401ff3856ccfd94fb6cf22f04be44bdcfa08 /src/test/incremental/thinlto | |
| parent | ed1f26ddda15b2bcf613a257e813e8b02ee14dff (diff) | |
| download | rust-6e2efe3aa477bdc8d7ccdb904523ad18d612bbb6.tar.gz rust-6e2efe3aa477bdc8d7ccdb904523ad18d612bbb6.zip | |
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 `as_ptr` to Shared/Unique to replace Deref impl * Added Unique's `as_ref` and `as_mut` conveniences to Shared * Added `::empty()` convenience constructor for Unique/Shared * Deprecated `as_mut_ptr` on Shared in favour of `as_ptr` * Improved documentation of types Note that Shared now only refers to *mut, and not *const
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
