Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to compile on recent rust nightlies with nightly features enabled #8

Closed
canarysnort01 opened this issue May 28, 2017 · 1 comment

Comments

@canarysnort01
Copy link

When included in a project with this configuration:

intrusive-collections = { version = "0.6", features = ["nightly"] }

Compilation fails with the following errors:

error: type `core::nonzero::NonZero<*mut T>` cannot be dereferenced
  --> intrusive-rs/src/unsafe_ref.rs:47:9
   |
47 |         *ptr.ptr
   |         ^^^^^^^^

error: type `core::nonzero::NonZero<*mut T>` cannot be dereferenced
   --> intrusive-rs/src/unsafe_ref.rs:112:20
    |
112 |         unsafe { &**self.ptr }
    |                    ^^^^^^^^^

error: aborting due to 2 previous errors

I believe this is due to the following change in the rust compiler:

rust-lang/rust#41064

@Amanieu
Copy link
Owner

Amanieu commented May 28, 2017

Thanks, this should be fixed in 0.6.1 now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants