Skip to content

Commit 191abc4

Browse files
committedJan 22, 2017
Remove unused extern crates.
1 parent 356fa2c commit 191abc4

File tree

29 files changed

+0
-76
lines changed

29 files changed

+0
-76
lines changed
 

‎src/Cargo.lock

-17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/libproc_macro_plugin/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@ crate-type = ["dylib"]
1111
log = { path = "../liblog" }
1212
rustc_plugin = { path = "../librustc_plugin" }
1313
syntax = { path = "../libsyntax" }
14-
syntax_pos = { path = "../libsyntax_pos" }
1514
proc_macro_tokens = { path = "../libproc_macro_tokens" }

‎src/libproc_macro_plugin/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@
8888

8989
extern crate rustc_plugin;
9090
extern crate syntax;
91-
extern crate syntax_pos;
9291
extern crate proc_macro_tokens;
9392
#[macro_use] extern crate log;
9493

‎src/libproc_macro_tokens/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,3 @@ crate-type = ["dylib"]
1010

1111
[dependencies]
1212
syntax = { path = "../libsyntax" }
13-
syntax_pos = { path = "../libsyntax_pos" }
14-
log = { path = "../liblog" }

‎src/libproc_macro_tokens/build.rs

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
extern crate syntax;
12-
extern crate syntax_pos;
13-
1411
use syntax::ast::Ident;
1512
use syntax::codemap::DUMMY_SP;
1613
use syntax::parse::token::{self, Token};

‎src/libproc_macro_tokens/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@
5858
#![feature(rustc_private)]
5959

6060
extern crate syntax;
61-
extern crate syntax_pos;
62-
extern crate log;
6361

6462
pub mod build;
6563
pub mod parse;

‎src/libproc_macro_tokens/parse.rs

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
//! Parsing utilities for writing procedural macros.
1212
13-
extern crate syntax;
14-
1513
use syntax::parse::{ParseSess, filemap_to_tts};
1614
use syntax::tokenstream::TokenStream;
1715

‎src/librustc/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ crate-type = ["dylib"]
1010

1111
[dependencies]
1212
arena = { path = "../libarena" }
13-
flate = { path = "../libflate" }
1413
fmt_macros = { path = "../libfmt_macros" }
1514
graphviz = { path = "../libgraphviz" }
1615
log = { path = "../liblog" }

‎src/librustc/lib.rs

-7
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#![feature(associated_consts)]
2727
#![feature(box_patterns)]
2828
#![feature(box_syntax)]
29-
#![feature(collections)]
3029
#![feature(conservative_impl_trait)]
3130
#![feature(const_fn)]
3231
#![feature(core_intrinsics)]
@@ -39,11 +38,9 @@
3938
#![feature(slice_patterns)]
4039
#![feature(staged_api)]
4140
#![feature(unboxed_closures)]
42-
#![cfg_attr(test, feature(test))]
4341

4442
extern crate arena;
4543
extern crate core;
46-
extern crate flate;
4744
extern crate fmt_macros;
4845
extern crate getopts;
4946
extern crate graphviz;
@@ -52,7 +49,6 @@ extern crate rustc_llvm as llvm;
5249
extern crate rustc_back;
5350
extern crate rustc_data_structures;
5451
extern crate serialize;
55-
extern crate collections;
5652
extern crate rustc_const_math;
5753
extern crate rustc_errors as errors;
5854
#[macro_use] extern crate log;
@@ -65,9 +61,6 @@ extern crate serialize as rustc_serialize; // used by deriving
6561
// SNAP:
6662
extern crate rustc_i128;
6763

68-
#[cfg(test)]
69-
extern crate test;
70-
7164
#[macro_use]
7265
mod macros;
7366

‎src/librustc_const_eval/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ crate-type = ["dylib"]
1111
[dependencies]
1212
arena = { path = "../libarena" }
1313
log = { path = "../liblog" }
14-
serialize = { path = "../libserialize" }
1514
rustc = { path = "../librustc" }
1615
rustc_back = { path = "../librustc_back" }
1716
rustc_const_math = { path = "../librustc_const_math" }

‎src/librustc_const_eval/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ extern crate rustc_data_structures;
4040
extern crate rustc_errors;
4141
extern crate graphviz;
4242
extern crate syntax_pos;
43-
extern crate serialize as rustc_serialize; // used by deriving
4443

4544
extern crate rustc_i128;
4645

‎src/librustc_const_math/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ path = "lib.rs"
99
crate-type = ["dylib"]
1010

1111
[dependencies]
12-
log = { path = "../liblog" }
1312
serialize = { path = "../libserialize" }
1413
syntax = { path = "../libsyntax" }
1514
rustc_i128 = { path = "../librustc_i128" }

‎src/librustc_const_math/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#![feature(const_fn)]
2929
#![cfg_attr(not(stage0), feature(i128))]
3030

31-
extern crate log;
3231
extern crate syntax;
3332

3433
// SNAP: remove use of this crate

‎src/librustc_driver/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ crate-type = ["dylib"]
1010

1111
[dependencies]
1212
arena = { path = "../libarena" }
13-
flate = { path = "../libflate" }
1413
graphviz = { path = "../libgraphviz" }
1514
log = { path = "../liblog" }
1615
proc_macro_plugin = { path = "../libproc_macro_plugin" }

‎src/librustc_driver/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#![feature(staged_api)]
3333

3434
extern crate arena;
35-
extern crate flate;
3635
extern crate getopts;
3736
extern crate graphviz;
3837
extern crate libc;

‎src/librustc_errors/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,4 @@ path = "lib.rs"
99
crate-type = ["dylib"]
1010

1111
[dependencies]
12-
log = { path = "../liblog" }
13-
serialize = { path = "../libserialize" }
1412
syntax_pos = { path = "../libsyntax_pos" }

‎src/librustc_errors/lib.rs

-5
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,9 @@
2323
#![feature(staged_api)]
2424
#![feature(range_contains)]
2525
#![feature(libc)]
26-
#![feature(unicode)]
2726

28-
extern crate serialize;
2927
extern crate term;
30-
extern crate log;
3128
extern crate libc;
32-
extern crate std_unicode;
33-
extern crate serialize as rustc_serialize; // used by deriving
3429
extern crate syntax_pos;
3530

3631
pub use emitter::ColorConfig;

‎src/librustc_incremental/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ serialize = { path = "../libserialize" }
1616
log = { path = "../liblog" }
1717
syntax = { path = "../libsyntax" }
1818
syntax_pos = { path = "../libsyntax_pos" }
19-
rustc_i128 = { path = "../librustc_i128" }

‎src/librustc_incremental/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ extern crate serialize as rustc_serialize;
3333
extern crate syntax;
3434
extern crate syntax_pos;
3535

36-
extern crate rustc_i128;
37-
3836
const ATTR_DIRTY: &'static str = "rustc_dirty";
3937
const ATTR_CLEAN: &'static str = "rustc_clean";
4038
const ATTR_DIRTY_METADATA: &'static str = "rustc_metadata_dirty";

‎src/librustc_mir/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ crate-type = ["dylib"]
1212
graphviz = { path = "../libgraphviz" }
1313
log = { path = "../liblog" }
1414
rustc = { path = "../librustc" }
15-
rustc_back = { path = "../librustc_back" }
1615
rustc_const_eval = { path = "../librustc_const_eval" }
1716
rustc_const_math = { path = "../librustc_const_math" }
1817
rustc_data_structures = { path = "../librustc_data_structures" }

‎src/librustc_mir/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ extern crate graphviz as dot;
3131
#[macro_use]
3232
extern crate rustc;
3333
extern crate rustc_data_structures;
34-
extern crate rustc_back;
3534
#[macro_use]
3635
#[no_link]
3736
extern crate rustc_bitflags;

‎src/librustc_passes/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#![feature(staged_api)]
2828
#![feature(rustc_private)]
2929

30-
extern crate core;
3130
#[macro_use]
3231
extern crate rustc;
3332
extern crate rustc_const_eval;

‎src/librustc_plugin/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ path = "lib.rs"
1010
crate-type = ["dylib"]
1111

1212
[dependencies]
13-
log = { path = "../liblog" }
1413
rustc = { path = "../librustc" }
1514
rustc_back = { path = "../librustc_back" }
1615
rustc_metadata = { path = "../librustc_metadata" }

‎src/librustc_plugin/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
#![feature(rustc_diagnostic_macros)]
6464
#![feature(rustc_private)]
6565

66-
extern crate log;
6766
#[macro_use] extern crate syntax;
6867

6968
extern crate rustc;

‎src/librustc_trans/Cargo.toml

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ crate-type = ["dylib"]
1010
test = false
1111

1212
[dependencies]
13-
arena = { path = "../libarena" }
1413
flate = { path = "../libflate" }
15-
graphviz = { path = "../libgraphviz" }
1614
log = { path = "../liblog" }
1715
rustc = { path = "../librustc" }
1816
rustc_back = { path = "../librustc_back" }
@@ -25,6 +23,5 @@ rustc_incremental = { path = "../librustc_incremental" }
2523
rustc_llvm = { path = "../librustc_llvm" }
2624
rustc_i128 = { path = "../librustc_i128" }
2725
rustc_platform_intrinsics = { path = "../librustc_platform_intrinsics" }
28-
serialize = { path = "../libserialize" }
2926
syntax = { path = "../libsyntax" }
3027
syntax_pos = { path = "../libsyntax_pos" }

‎src/librustc_trans/lib.rs

-4
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,14 @@
4040

4141
use rustc::dep_graph::WorkProduct;
4242

43-
extern crate arena;
4443
extern crate flate;
45-
extern crate getopts;
46-
extern crate graphviz;
4744
extern crate libc;
4845
#[macro_use] extern crate rustc;
4946
extern crate rustc_back;
5047
extern crate rustc_data_structures;
5148
extern crate rustc_incremental;
5249
pub extern crate rustc_llvm as llvm;
5350
extern crate rustc_platform_intrinsics as intrinsics;
54-
extern crate serialize;
5551
extern crate rustc_const_math;
5652
extern crate rustc_const_eval;
5753
#[macro_use]

‎src/libserialize/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ path = "lib.rs"
99
crate-type = ["dylib", "rlib"]
1010

1111
[dependencies]
12-
log = { path = "../liblog" }
1312
rustc_i128 = { path = "../librustc_i128" }

‎src/libserialize/lib.rs

-7
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,10 @@ Core encoding and decoding interfaces.
3131
#![feature(collections)]
3232
#![feature(core_intrinsics)]
3333
#![feature(enumset)]
34-
#![feature(rustc_private)]
3534
#![feature(specialization)]
3635
#![feature(staged_api)]
37-
#![feature(unicode)]
3836
#![cfg_attr(test, feature(test))]
3937

40-
// test harness access
41-
#[cfg(test)] extern crate test;
42-
extern crate log;
43-
44-
extern crate std_unicode;
4538
extern crate collections;
4639

4740
extern crate rustc_i128;

‎src/libsyntax/lib.rs

-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
#![feature(associated_consts)]
2828
#![feature(const_fn)]
29-
#![feature(libc)]
3029
#![feature(optin_builtin_traits)]
3130
#![feature(rustc_private)]
3231
#![feature(staged_api)]
@@ -35,10 +34,7 @@
3534
#![feature(rustc_diagnostic_macros)]
3635
#![feature(specialization)]
3736

38-
extern crate core;
3937
extern crate serialize;
40-
extern crate term;
41-
extern crate libc;
4238
#[macro_use] extern crate log;
4339
#[macro_use] #[no_link] extern crate rustc_bitflags;
4440
extern crate std_unicode;

0 commit comments

Comments
 (0)
Please sign in to comment.