Build failed. If you want to re-trigger a documentation build, you can do it here. You can find more information on docs.rs builds documentation on the builds page.
# rustc version
rustc 1.26.0-dev (5c1d29af0 2018-03-03)# docs.rs version
cratesfyi 0.5.0 (579f83b 2018-03-05)# build log
Build failed, waiting for other jobs to finish...
Updating registry `https://github.com/rust-lang/crates.io-index`
Downloading libreal v0.14.1
Downloading containers v0.2.1
Downloading rel v0.1.2
Compiling loca v0.5.4
Fresh siphasher v0.2.2
Compiling rel v0.1.2
Fresh heap v0.1.0
Fresh void v1.0.2
Fresh rel v0.2.0
Running `rustc --crate-name loca .cargo/registry/src/github.com-1ecc6299db9ec823/loca-0.5.4/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=2f84c5ec8e1ae7a0 -C extra-filename=-2f84c5ec8e1ae7a0 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow`
Running `rustc --crate-name rel .cargo/registry/src/github.com-1ecc6299db9ec823/rel-0.1.2/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=24d5c1245e0643ff -C extra-filename=-24d5c1245e0643ff --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow`
Compiling i-o v0.2.2
Running `/home/cratesfyi/cratesfyi/debug/build/i-o-cb20f4d7c940fe1c/build-script-build`
Compiling containers v0.7.1
Running `/home/cratesfyi/cratesfyi/debug/build/containers-f446cd3f9f97e881/build-script-build`
Fresh typenum v1.9.0
Compiling containers v0.2.1
Running `rustc --crate-name containers .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=27b906544a384538 -C extra-filename=-27b906544a384538 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern rel=/home/cratesfyi/cratesfyi/debug/deps/librel-24d5c1245e0643ff.rlib --extern-version rel=rel,0.1.2 --extern typenum=/home/cratesfyi/cratesfyi/debug/deps/libtypenum-0dd78c81e7084fc0.rlib --extern-version typenum=typenum,1.9.0 --cap-lints allow`
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/loca-0.5.4/src/lib.rs:24:5
|
24 | use core::ptr::Unique;
| ^^^^^^^^^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/loca-0.5.4/src/lib.rs:857:42
|
857 | fn alloc_one<T>(&mut self) -> Result<Unique<T>, AllocErr> {
| ^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/loca-0.5.4/src/lib.rs:860:44
|
860 | unsafe { self.alloc(k).map(|p| Unique::new_unchecked(p as *mut T)) }
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/loca-0.5.4/src/lib.rs:883:46
|
883 | unsafe fn dealloc_one<T>(&mut self, ptr: Unique<T>) {
| ^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/loca-0.5.4/src/lib.rs:921:54
|
921 | fn alloc_array<T>(&mut self, n: usize) -> Result<Unique<T>, AllocErr> {
| ^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/loca-0.5.4/src/lib.rs:925:56
|
925 | self.alloc(layout.clone()).map(|p| Unique::new_unchecked(p as *mut T))
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/loca-0.5.4/src/lib.rs:965:37
|
965 | ptr: Unique<T>,
| ^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/loca-0.5.4/src/lib.rs:967:56
|
967 | n_new: usize) -> Result<Unique<T>, AllocErr> {
| ^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/loca-0.5.4/src/lib.rs:971:29
|
971 | .map(|p|Unique::new_unchecked(p as *mut T))
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/loca-0.5.4/src/lib.rs:999:48
|
999 | unsafe fn dealloc_array<T>(&mut self, ptr: Unique<T>, n: usize) -> Result<(), AllocErr> {
| ^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/loca-0.5.4/src/lib.rs:1031:42
|
1031 | fn alloc_one<T>(&mut self) -> Result<Unique<T>, AllocErr> { self.deref_mut().alloc_one() }
| ^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/loca-0.5.4/src/lib.rs:1032:46
|
1032 | unsafe fn dealloc_one<T>(&mut self, ptr: Unique<T>) { self.deref_mut().dealloc_one(ptr) }
| ^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/loca-0.5.4/src/lib.rs:1033:54
|
1033 | fn alloc_array<T>(&mut self, n: usize) -> Result<Unique<T>, AllocErr> { self.deref_mut().alloc_array(n) }
| ^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/loca-0.5.4/src/lib.rs:1034:48
|
1034 | unsafe fn realloc_array<T>(&mut self, ptr: Unique<T>, old_n: usize, new_n: usize) -> Result<Unique<T>, AllocErr> { self.deref_mut().realloc_array(ptr, old_n, new_n) }
| ^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/loca-0.5.4/src/lib.rs:1034:97
|
1034 | unsafe fn realloc_array<T>(&mut self, ptr: Unique<T>, old_n: usize, new_n: usize) -> Result<Unique<T>, AllocErr> { self.deref_mut().realloc_array(ptr, old_n, new_n) }
| ^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/loca-0.5.4/src/lib.rs:1035:48
|
1035 | unsafe fn dealloc_array<T>(&mut self, ptr: Unique<T>, n: usize) -> Result<(), AllocErr> { self.deref_mut().dealloc_array(ptr, n) }
| ^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals' (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/loca-0.5.4/src/lib.rs:860:44
|
860 | unsafe { self.alloc(k).map(|p| Unique::new_unchecked(p as *mut T)) }
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals' (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/loca-0.5.4/src/lib.rs:884:27
|
884 | let raw_ptr = ptr.as_ptr() as *mut u8;
| ^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals' (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/loca-0.5.4/src/lib.rs:925:56
|
925 | self.alloc(layout.clone()).map(|p| Unique::new_unchecked(p as *mut T))
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals' (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/loca-0.5.4/src/lib.rs:968:74
|
968 | match (Layout::array::<T>(n_old), Layout::array::<T>(n_new), ptr.as_ptr()) {
| ^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals' (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/loca-0.5.4/src/lib.rs:971:29
|
971 | .map(|p|Unique::new_unchecked(p as *mut T))
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals' (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/loca-0.5.4/src/lib.rs:1000:27
|
1000 | let raw_ptr = ptr.as_ptr() as *mut u8;
| ^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0432]: unresolved import `alloc::heap::allocate`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/hash_table.rs:3:20
|
3 | use alloc::heap::{ allocate, deallocate };
| ^^^^^^^^ no `allocate` in `heap`
error[E0432]: unresolved import `alloc::heap::deallocate`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/hash_table.rs:3:30
|
3 | use alloc::heap::{ allocate, deallocate };
| ^^^^^^^^^^ no `deallocate` in `heap`
error[E0432]: unresolved import `alloc::heap::allocate`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:8:27
|
8 | use alloc::heap::{ EMPTY, allocate, reallocate, deallocate };
| ^^^^^^^^ no `allocate` in `heap`
error[E0432]: unresolved import `alloc::heap::reallocate`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:8:37
|
8 | use alloc::heap::{ EMPTY, allocate, reallocate, deallocate };
| ^^^^^^^^^^ no `reallocate` in `heap`
error[E0432]: unresolved import `alloc::heap::deallocate`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:8:49
|
8 | use alloc::heap::{ EMPTY, allocate, reallocate, deallocate };
| ^^^^^^^^^^ no `deallocate` in `heap`
error: aborting due to 22 previous errors
If you want more information on this error, try using "rustc --explain E0658"
error: Could not compile `loca`.
Caused by:
process didn't exit successfully: `rustc --crate-name loca .cargo/registry/src/github.com-1ecc6299db9ec823/loca-0.5.4/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=2f84c5ec8e1ae7a0 -C extra-filename=-2f84c5ec8e1ae7a0 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow` (exit code: 101)
error[E0425]: cannot find function `allocate` in this scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/boxed.rs:16:21
|
16 | let p = allocate(mem::size_of::<T>(), mem::align_of::<T>()) as *mut T;
| ^^^^^^^^ not found in this scope
error[E0425]: cannot find function `deallocate` in this scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/boxed.rs:57:13
|
57 | deallocate(ptr as *mut u8, mem::size_of_val(&*ptr), mem::align_of_val(&*ptr));
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function `allocate` in this scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/b_tree.rs:28:26
|
28 | let p = unsafe { allocate(Self::stem_size(), Self::stem_align()) };
| ^^^^^^^^ not found in this scope
error[E0425]: cannot find function `allocate` in this scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/b_tree.rs:36:33
|
36 | else { unsafe { allocate(Self::leaf_size(), Self::leaf_align()) } };
| ^^^^^^^^ not found in this scope
error[E0425]: cannot find function `deallocate` in this scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/b_tree.rs:44:9
|
44 | deallocate(ptr,
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function `allocate` in this scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/b_tree.rs:430:26
|
430 | let p = unsafe { allocate(BNode::<B, Rel, K, T>::stem_size(), BNode::<B, Rel, K, T>::stem_align()) };
| ^^^^^^^^ not found in this scope
error[E0425]: cannot find function `deallocate` in this scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/b_tree.rs:432:29
|
432 | let d = || unsafe { deallocate(p, BNode::<B, Rel, K, T>::stem_size(), BNode::<B, Rel, K, T>::stem_align()) };
| ^^^^^^^^^^ not found in this scope
error[E0658]: use of unstable library feature 'allocator_api': the precise API and guarantees it provides may be tweaked slightly, especially to possibly take into account the types being stored to make room for a future tracing garbage collector (see issue #32838)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/boxed.rs:3:5
|
3 | use alloc::heap::*;
| ^^^^^^^^^^^
|
= help: add #![feature(allocator_api)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/boxed.rs:6:24
|
6 | use core::ptr::{ self, Unique };
| ^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/boxed.rs:9:27
|
9 | pub struct Box<T: ?Sized>(Unique<T>);
| ^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'allocator_api': the precise API and guarantees it provides may be tweaked slightly, especially to possibly take into account the types being stored to make room for a future tracing garbage collector (see issue #32838)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/b_tree.rs:3:5
|
3 | use alloc::heap::*;
| ^^^^^^^^^^^
|
= help: add #![feature(allocator_api)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:16:5
|
16 | use core::ptr::Unique;
| ^^^^^^^^^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:21:10
|
21 | ptr: Unique<T>,
| ^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/boxed.rs:19:22
|
19 | Some(Box(Unique::new(p)))
| ^^^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/boxed.rs:31:55
|
31 | pub unsafe fn from_raw(ptr: *mut T) -> Self { Box(Unique::new(ptr)) }
| ^^^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:32:50
|
32 | pub fn new() -> Vec<T> { unsafe { Vec { ptr: Unique::new(EMPTY as *mut T), len: 0, cap: 0 } } }
| ^^^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:42:38
|
42 | Some(unsafe { Vec { ptr: Unique::new(EMPTY as *mut T), len: 0, cap: cap } })
| ^^^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:49:45
|
49 | else { Some(unsafe { Vec { ptr: Unique::new(ptr), len: 0, cap: cap } }) }
| ^^^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:94:28
|
94 | self.ptr = Unique::new(ptr);
| ^^^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals': use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), Send, and/or Sync (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:273:28
|
273 | self.ptr = Unique::new(ptr);
| ^^^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0658]: use of unstable library feature 'ptr_internals' (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/boxed.rs:19:22
|
19 | Some(Box(Unique::new(p)))
| ^^^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/boxed.rs:19:22
|
19 | Some(Box(Unique::new(p)))
| ^^^^^^^^^^^^^^ expected struct `core::ptr::Unique`, found enum `core::option::Option`
|
= note: expected type `core::ptr::Unique<T>`
found type `core::option::Option<core::ptr::Unique<_>>`
error[E0658]: use of unstable library feature 'ptr_internals' (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/boxed.rs:31:55
|
31 | pub unsafe fn from_raw(ptr: *mut T) -> Self { Box(Unique::new(ptr)) }
| ^^^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/boxed.rs:31:55
|
31 | pub unsafe fn from_raw(ptr: *mut T) -> Self { Box(Unique::new(ptr)) }
| ^^^^^^^^^^^^^^^^ expected struct `core::ptr::Unique`, found enum `core::option::Option`
|
= note: expected type `core::ptr::Unique<_>`
found type `core::option::Option<core::ptr::Unique<_>>`
error[E0614]: type `core::ptr::Unique<T>` cannot be dereferenced
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/boxed.rs:39:46
|
39 | pub unsafe fn into_raw(self) -> *mut T { *self.0 }
| ^^^^^^^
error[E0599]: no method named `get` found for type `core::ptr::Unique<T>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/boxed.rs:45:45
|
45 | fn deref(&self) -> &T { unsafe { self.0.get() } }
| ^^^
error[E0599]: no method named `get_mut` found for type `core::ptr::Unique<T>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/boxed.rs:49:57
|
49 | fn deref_mut(&mut self) -> &mut T { unsafe { self.0.get_mut() } }
| ^^^^^^^
error[E0614]: type `core::ptr::Unique<T>` cannot be dereferenced
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/boxed.rs:54:19
|
54 | let ptr = *self.0;
| ^^^^^^^
error[E0658]: use of unstable library feature 'ptr_internals' (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:32:50
|
32 | pub fn new() -> Vec<T> { unsafe { Vec { ptr: Unique::new(EMPTY as *mut T), len: 0, cap: 0 } } }
| ^^^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:32:50
|
32 | pub fn new() -> Vec<T> { unsafe { Vec { ptr: Unique::new(EMPTY as *mut T), len: 0, cap: 0 } } }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `core::ptr::Unique`, found enum `core::option::Option`
|
= note: expected type `core::ptr::Unique<_>`
found type `core::option::Option<core::ptr::Unique<_>>`
error[E0658]: use of unstable library feature 'ptr_internals' (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:42:38
|
42 | Some(unsafe { Vec { ptr: Unique::new(EMPTY as *mut T), len: 0, cap: cap } })
| ^^^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:42:38
|
42 | Some(unsafe { Vec { ptr: Unique::new(EMPTY as *mut T), len: 0, cap: cap } })
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `core::ptr::Unique`, found enum `core::option::Option`
|
= note: expected type `core::ptr::Unique<_>`
found type `core::option::Option<core::ptr::Unique<_>>`
error[E0658]: use of unstable library feature 'ptr_internals' (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:49:45
|
49 | else { Some(unsafe { Vec { ptr: Unique::new(ptr), len: 0, cap: cap } }) }
| ^^^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:49:45
|
49 | else { Some(unsafe { Vec { ptr: Unique::new(ptr), len: 0, cap: cap } }) }
| ^^^^^^^^^^^^^^^^ expected struct `core::ptr::Unique`, found enum `core::option::Option`
|
= note: expected type `core::ptr::Unique<T>`
found type `core::option::Option<core::ptr::Unique<_>>`
error[E0614]: type `core::ptr::Unique<T>` cannot be dereferenced
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:63:35
|
63 | slice::from_raw_parts_mut(*self.ptr, self.cap)
| ^^^^^^^^^
error[E0614]: type `core::ptr::Unique<T>` cannot be dereferenced
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:87:46
|
87 | if self.len == 0 { dealloc_array(*self.ptr, self.cap) }
| ^^^^^^^^^
error[E0614]: type `core::ptr::Unique<T>` cannot be dereferenced
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:89:38
|
89 | let ptr = reallocate(*self.ptr as *mut u8,
| ^^^^^^^^^
error[E0658]: use of unstable library feature 'ptr_internals' (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:94:28
|
94 | self.ptr = Unique::new(ptr);
| ^^^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:94:28
|
94 | self.ptr = Unique::new(ptr);
| ^^^^^^^^^^^^^^^^ expected struct `core::ptr::Unique`, found enum `core::option::Option`
|
= note: expected type `core::ptr::Unique<T>`
found type `core::option::Option<core::ptr::Unique<_>>`
error[E0599]: no method named `offset` found for type `core::ptr::Unique<T>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:115:32
|
115 | let ptr = self.ptr.offset(k as isize);
| ^^^^^^
error[E0599]: no method named `offset` found for type `core::ptr::Unique<T>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:132:32
|
132 | let ptr = self.ptr.offset(k as isize);
| ^^^^^^
error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:134:40
|
134 | ptr::copy(&*ptr.offset(1), ptr, self.len - k - 1);
| ^^^ types differ in mutability
|
= note: expected type `*mut _`
found type `*const _`
error[E0614]: type `core::ptr::Unique<T>` cannot be dereferenced
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:179:38
|
179 | ptr::copy_nonoverlapping(*xs.ptr, self.ptr.offset(self.len as isize), xs.len);
| ^^^^^^^
error[E0599]: no method named `offset` found for type `core::ptr::Unique<T>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:179:56
|
179 | ptr::copy_nonoverlapping(*xs.ptr, self.ptr.offset(self.len as isize), xs.len);
| ^^^^^^
error[E0599]: no method named `offset` found for type `core::ptr::Unique<T>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:194:60
|
194 | ptr::copy_nonoverlapping(xs.as_ptr(), self.ptr.offset(self.len as isize), xs.len());
| ^^^^^^
error[E0599]: no method named `offset` found for type `core::ptr::Unique<T>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:216:47
|
216 | ptr::copy_nonoverlapping(self.ptr.offset(k as isize), *xs.ptr, xs.len);
| ^^^^^^
error[E0614]: type `core::ptr::Unique<_>` cannot be dereferenced
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:216:67
|
216 | ptr::copy_nonoverlapping(self.ptr.offset(k as isize), *xs.ptr, xs.len);
| ^^^^^^^
error[E0614]: type `core::ptr::Unique<T>` cannot be dereferenced
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:271:44
|
271 | let ptr = alloc_or_realloc(*self.ptr, self.cap * mem::size_of::<T>(), size);
| ^^^^^^^^^
error[E0658]: use of unstable library feature 'ptr_internals' (see issue #0)
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:273:28
|
273 | self.ptr = Unique::new(ptr);
| ^^^^^^^^^^^
|
= help: add #![feature(ptr_internals)] to the crate attributes to enable
error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:273:28
|
273 | self.ptr = Unique::new(ptr);
| ^^^^^^^^^^^^^^^^ expected struct `core::ptr::Unique`, found enum `core::option::Option`
|
= note: expected type `core::ptr::Unique<T>`
found type `core::option::Option<core::ptr::Unique<_>>`
error[E0614]: type `core::ptr::Unique<T>` cannot be dereferenced
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:287:31
|
287 | dealloc_array(*self.ptr, self.cap);
| ^^^^^^^^^
error[E0614]: type `core::ptr::Unique<T>` cannot be dereferenced
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:361:62
|
361 | fn deref(&self) -> &[T] { unsafe { slice::from_raw_parts(*self.ptr, self.len) } }
| ^^^^^^^^^
error[E0614]: type `core::ptr::Unique<T>` cannot be dereferenced
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:366:78
|
366 | fn deref_mut(&mut self) -> &mut [T] { unsafe { slice::from_raw_parts_mut(*self.ptr, self.len) } }
| ^^^^^^^^^
error[E0614]: type `core::ptr::Unique<T>` cannot be dereferenced
--> .cargo/registry/src/github.com-1ecc6299db9ec823/containers-0.2.1/src/collections/vec.rs:384:19
|
384 | let ptr = *self.ptr;
| ^^^^^^^^^
error: aborting due to 59 previous errors
You've got a few errors: E0308, E0425, E0432, E0599, E0614, E0658
If you want more information on an error, try using "rustc --explain E0308"
thread 'main' panicked at 'Error(
CargoError(
build failed
),
State {
next_error: None,
backtrace: None
}
)', src/bin/cratesfyi.rs:142:13
note: Run with `RUST_BACKTRACE=1` for a backtrace.