Skip to content

Add necessary feature flags to compile on nightly #1

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add necessary feature flags to compile on nightly #1

wants to merge 2 commits into from

Conversation

hjr3
Copy link

@hjr3 hjr3 commented Jul 4, 2015

I was trying to play with Reactor on nightly and received the following errors:

src/block_allocator.rs:92:20: 92:34 error: use of unstable library feature 'raw'
src/block_allocator.rs:92         let repr : raw::Slice<u8> = buf.repr();
                                             ^~~~~~~~~~~~~~
src/block_allocator.rs:92:20: 92:34 help: add #![feature(raw)] to the crate attributes to enable
src/block_allocator.rs:92:41: 92:47 error: use of unstable library feature 'raw'
src/block_allocator.rs:92         let repr : raw::Slice<u8> = buf.repr();
                                                                  ^~~~~~
src/block_allocator.rs:92:41: 92:47 help: add #![feature(raw)] to the crate attributes to enable
src/block_allocator.rs:93:28: 93:32 error: use of unstable library feature 'raw'
src/block_allocator.rs:93         self.free_raw(repr.data as *mut u8);
                                                     ^~~~
src/block_allocator.rs:93:28: 93:32 help: add #![feature(raw)] to the crate attributes to enable
src/buf.rs:4:5: 4:27 error: use of unstable library feature 'nonzero': needs an RFC to flesh out the design
src/buf.rs:4 use core::nonzero::NonZero;
                 ^~~~~~~~~~~~~~~~~~~~~~
src/buf.rs:4:5: 4:27 help: add #![feature(nonzero)] to the crate attributes to enable
src/buf.rs:12:31: 12:47 error: use of unstable library feature 'nonzero': needs an RFC to flesh out the design
src/buf.rs:12     fn deallocate(&self, ptr: NonZero<*mut u8>, _: usize, _: usize) {
                                            ^~~~~~~~~~~~~~~~
src/buf.rs:12:31: 12:47 help: add #![feature(nonzero)] to the crate attributes to enable
error: aborting due to 5 previous errors
Could not compile `block_allocator`.

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

Successfully merging this pull request may close these issues.

1 participant