From 9a0b4b6705469e356a03fb7ea9522636492957c4 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Mon, 25 Feb 2019 00:40:34 +0900 Subject: [PATCH] Remove some unnecessary 'extern crate' --- src/bootstrap/bin/main.rs | 2 -- src/bootstrap/bin/rustc.rs | 2 -- src/bootstrap/bin/rustdoc.rs | 2 -- src/bootstrap/bin/sccache-plus-cl.rs | 2 -- src/bootstrap/lib.rs | 12 ------------ src/liballoc/benches/lib.rs | 2 -- src/liballoc/tests/lib.rs | 3 --- 7 files changed, 25 deletions(-) diff --git a/src/bootstrap/bin/main.rs b/src/bootstrap/bin/main.rs index 8ddce5c247d..0732cb83f39 100644 --- a/src/bootstrap/bin/main.rs +++ b/src/bootstrap/bin/main.rs @@ -7,8 +7,6 @@ #![deny(warnings)] -extern crate bootstrap; - use std::env; use bootstrap::{Config, Build}; diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs index 7a765973e20..b6afe317a07 100644 --- a/src/bootstrap/bin/rustc.rs +++ b/src/bootstrap/bin/rustc.rs @@ -17,8 +17,6 @@ #![deny(warnings)] -extern crate bootstrap; - use std::env; use std::ffi::OsString; use std::io; diff --git a/src/bootstrap/bin/rustdoc.rs b/src/bootstrap/bin/rustdoc.rs index aeb15821b0b..36beec3a944 100644 --- a/src/bootstrap/bin/rustdoc.rs +++ b/src/bootstrap/bin/rustdoc.rs @@ -4,8 +4,6 @@ #![deny(warnings)] -extern crate bootstrap; - use std::env; use std::process::Command; use std::path::PathBuf; diff --git a/src/bootstrap/bin/sccache-plus-cl.rs b/src/bootstrap/bin/sccache-plus-cl.rs index f9e14d1ff6d..f40eec83ddf 100644 --- a/src/bootstrap/bin/sccache-plus-cl.rs +++ b/src/bootstrap/bin/sccache-plus-cl.rs @@ -1,5 +1,3 @@ -extern crate cc; - use std::env; use std::process::{self, Command}; diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index 6a93c95c3d9..2dceb30c4ad 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -114,23 +114,11 @@ extern crate serde_derive; #[macro_use] extern crate lazy_static; -extern crate serde_json; -extern crate cmake; -extern crate filetime; -extern crate cc; -extern crate getopts; -extern crate num_cpus; -extern crate toml; -extern crate time; -extern crate petgraph; #[cfg(test)] #[macro_use] extern crate pretty_assertions; -#[cfg(unix)] -extern crate libc; - use std::cell::{RefCell, Cell}; use std::collections::{HashSet, HashMap}; use std::env; diff --git a/src/liballoc/benches/lib.rs b/src/liballoc/benches/lib.rs index a1884b7d548..4bf5ec10c41 100644 --- a/src/liballoc/benches/lib.rs +++ b/src/liballoc/benches/lib.rs @@ -1,8 +1,6 @@ #![feature(repr_simd)] #![feature(test)] -extern crate rand; -extern crate rand_xorshift; extern crate test; mod btree; diff --git a/src/liballoc/tests/lib.rs b/src/liballoc/tests/lib.rs index 2361a7db1f7..90921b6af9f 100644 --- a/src/liballoc/tests/lib.rs +++ b/src/liballoc/tests/lib.rs @@ -8,9 +8,6 @@ #![feature(unboxed_closures)] #![feature(vecdeque_rotate)] -extern crate core; -extern crate rand; - use std::hash::{Hash, Hasher}; use std::collections::hash_map::DefaultHasher; -- GitLab