diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2020-07-03 17:16:56 -0700 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-03 17:16:56 -0700 | 
| commit | 9a659c54e5c139d8d9a3e374b44c46bbd89788f8 (patch) | |
| tree | 62d9c97cad2622a9354e8c9ccf22492c2d089f1c /src/liballoc/lib.rs | |
| parent | 50dcefca7813a2985c0f1c1863efbe5ce7958815 (diff) | |
| parent | 1b5ac57bfd4b0cca3bcdd0fa75c0f0e044ebf01e (diff) | |
| download | rust-9a659c54e5c139d8d9a3e374b44c46bbd89788f8.tar.gz rust-9a659c54e5c139d8d9a3e374b44c46bbd89788f8.zip | |
Rollup merge of #73845 - CAD97:weak-as-unsized-ptr, r=RalfJung
Use &raw in A|Rc::as_ptr This PR uses `&raw` for offsetting `*mut [A]RcInner<T> -> *mut T`. Additionally, this updates the implementation of `Weak::as_ptr` to support unsized `T`, though it does not yet relax the bounds of `Weak::as_ptr`/`into_raw`/`from_raw` to accept unsized `T`.
Diffstat (limited to 'src/liballoc/lib.rs')
| -rw-r--r-- | src/liballoc/lib.rs | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs index 5f18fe8bfab..79bfd57a00f 100644 --- a/src/liballoc/lib.rs +++ b/src/liballoc/lib.rs @@ -100,6 +100,7 @@ #![feature(fundamental)] #![feature(internal_uninit_const)] #![feature(lang_items)] +#![feature(layout_for_ptr)] #![feature(libc)] #![feature(negative_impls)] #![feature(new_uninit)] @@ -109,6 +110,7 @@ #![feature(pattern)] #![feature(ptr_internals)] #![feature(ptr_offset_from)] +#![feature(raw_ref_op)] #![feature(rustc_attrs)] #![feature(receiver_trait)] #![feature(min_specialization)] | 
