Skip to content

Commit

Permalink
Rollup merge of #58704 - taiki-e:extern-crate, r=Centril
Browse files Browse the repository at this point in the history
Remove some unnecessary 'extern crate'

cc #58099

r? @Centril
  • Loading branch information
Centril authored Feb 25, 2019
2 parents b5cf4ea + 9a0b4b6 commit 6806d0c
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 25 deletions.
2 changes: 0 additions & 2 deletions src/bootstrap/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

#![deny(warnings)]

extern crate bootstrap;

use std::env;

use bootstrap::{Config, Build};
Expand Down
2 changes: 0 additions & 2 deletions src/bootstrap/bin/rustc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

#![deny(warnings)]

extern crate bootstrap;

use std::env;
use std::ffi::OsString;
use std::io;
Expand Down
2 changes: 0 additions & 2 deletions src/bootstrap/bin/rustdoc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

#![deny(warnings)]

extern crate bootstrap;

use std::env;
use std::process::Command;
use std::path::PathBuf;
Expand Down
2 changes: 0 additions & 2 deletions src/bootstrap/bin/sccache-plus-cl.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate cc;

use std::env;
use std::process::{self, Command};

Expand Down
12 changes: 0 additions & 12 deletions src/bootstrap/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,23 +114,11 @@ extern crate build_helper;
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;
Expand Down
2 changes: 0 additions & 2 deletions src/liballoc/benches/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#![feature(repr_simd)]
#![feature(test)]

extern crate rand;
extern crate rand_xorshift;
extern crate test;

mod btree;
Expand Down
3 changes: 0 additions & 3 deletions src/liballoc/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6806d0c

Please sign in to comment.