Manishearth / rust-gc

Simple tracing (mark and sweep) garbage collector for Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Broken on current nightly.

kevincox opened this issue · comments

error[E0599]: no function or associated item named `new_unchecked` found for type `std::ptr::Shared<_>` in the current scope
  --> /home/kevincox/.cargo/registry/src/github.com-1ecc6299db9ec823/gc-0.3.2/src/lib.rs:87:37
   |
87 |                 ptr_root: Cell::new(Shared::new_unchecked(ptr.as_ptr())),
   |                                     ^^^^^^^^^^^^^^^^^^^^^

error[E0599]: no function or associated item named `new_unchecked` found for type `std::ptr::Shared<_>` in the current scope
   --> /home/kevincox/.cargo/registry/src/github.com-1ecc6299db9ec823/gc-0.3.2/src/lib.rs:101:5
    |
101 |     Shared::new_unchecked(ptr)
    |     ^^^^^^^^^^^^^^^^^^^^^

error[E0599]: no function or associated item named `new_unchecked` found for type `std::ptr::Shared<_>` in the current scope
   --> /home/kevincox/.cargo/registry/src/github.com-1ecc6299db9ec823/gc-0.3.2/src/lib.rs:112:27
    |
112 |         self.ptr_root.set(Shared::new_unchecked(ptr));
    |                           ^^^^^^^^^^^^^^^^^^^^^

error[E0599]: no function or associated item named `new_unchecked` found for type `std::ptr::Shared<_>` in the current scope
   --> /home/kevincox/.cargo/registry/src/github.com-1ecc6299db9ec823/gc-0.3.2/src/gc.rs:114:44
    |
114 |             st.boxes_start = Some(unsafe { Shared::new_unchecked(gcbox) });
    |                                            ^^^^^^^^^^^^^^^^^^^^^

error[E0599]: no function or associated item named `new_unchecked` found for type `std::ptr::Shared<_>` in the current scope
   --> /home/kevincox/.cargo/registry/src/github.com-1ecc6299db9ec823/gc-0.3.2/src/gc.rs:120:22
    |
120 |             unsafe { Shared::new_unchecked(gcbox) }
    |           

This can presumably be closed.