diff --git a/benches/kernel_swap.rs b/benches/kernel_swap.rs index 0f50a83..24efd6e 100644 --- a/benches/kernel_swap.rs +++ b/benches/kernel_swap.rs @@ -1,4 +1,4 @@ -#![feature(asm)] +#![feature(asm, test)] extern crate test; use test::Bencher; diff --git a/benches/swap.rs b/benches/swap.rs index 4379907..227c107 100644 --- a/benches/swap.rs +++ b/benches/swap.rs @@ -1,3 +1,4 @@ +#![feature(test)] extern crate test; extern crate lwkt; use lwkt::Context; diff --git a/build.rs b/build.rs index a77eea6..2513ee4 100644 --- a/build.rs +++ b/build.rs @@ -1,7 +1,7 @@ -#![allow(unstable)] -use std::io::Command; -use std::io::fs::PathExtensions; -use std::io::fs; +#![feature(io, path, os)] +use std::old_io::Command; +use std::old_io::fs::PathExtensions; +use std::old_io::fs; use std::os; fn main() { @@ -30,7 +30,7 @@ fn main() { } Command::new("ar").args(&["crus", "libcontext.a"]) - .args(objects.as_slice()) + .args(&*objects) .cwd(&Path::new(&out_dir)) .status().unwrap(); diff --git a/src/lib.rs b/src/lib.rs index a310574..6bff4eb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,8 +1,8 @@ -#![feature(asm)] +#![feature(asm, core)] +#![feature(os, libc)] #![no_std] #[macro_use] -#[allow(unstable)] extern crate core; #[cfg(test)] diff --git a/src/platform.rs b/src/platform.rs index a084832..5eb38d7 100644 --- a/src/platform.rs +++ b/src/platform.rs @@ -1,4 +1,3 @@ -#![allow(unstable)] extern crate libc; extern crate std; use self::std::prelude::v1::*;