From cb92ab93a224a7728103f837ec761b1dafd5fbb1 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Wed, 12 Jul 2017 10:44:49 +0200 Subject: [PATCH] Reduce the usage of features in compiletest and libtest --- src/Cargo.lock | 1 + src/libtest/lib.rs | 2 -- src/tools/compiletest/Cargo.toml | 1 + src/tools/compiletest/src/main.rs | 2 -- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Cargo.lock b/src/Cargo.lock index 35634d25325..368a503b310 100644 --- a/src/Cargo.lock +++ b/src/Cargo.lock @@ -284,6 +284,7 @@ dependencies = [ "env_logger 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", "filetime 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", "getopts 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.26 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-serialize 0.3.24 (registry+https://github.com/rust-lang/crates.io-index)", ] diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index 92cfb862b16..bf71b11fc77 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -35,9 +35,7 @@ #![feature(asm)] #![feature(libc)] -#![feature(rustc_private)] #![feature(set_stdio)] -#![feature(staged_api)] #![feature(panic_unwind)] extern crate getopts; diff --git a/src/tools/compiletest/Cargo.toml b/src/tools/compiletest/Cargo.toml index 543e6784a72..f8282cc5f8d 100644 --- a/src/tools/compiletest/Cargo.toml +++ b/src/tools/compiletest/Cargo.toml @@ -10,3 +10,4 @@ filetime = "0.1" getopts = "0.2" log = "0.3" rustc-serialize = "0.3" +libc = "0.2" diff --git a/src/tools/compiletest/src/main.rs b/src/tools/compiletest/src/main.rs index cc42544ef02..91f80a7afec 100644 --- a/src/tools/compiletest/src/main.rs +++ b/src/tools/compiletest/src/main.rs @@ -10,9 +10,7 @@ #![crate_name = "compiletest"] -#![feature(box_syntax)] #![feature(test)] -#![feature(libc)] #![deny(warnings)]