Remove unused extern crates. · rust-lang/rust@191abc4 (original) (raw)

29 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -11,5 +11,4 @@ crate-type = ["dylib"]
11 11 log = { path = "../liblog" }
12 12 rustc_plugin = { path = "../librustc_plugin" }
13 13 syntax = { path = "../libsyntax" }
14 -syntax_pos = { path = "../libsyntax_pos" }
15 14 proc_macro_tokens = { path = "../libproc_macro_tokens" }
Original file line number Diff line number Diff line change
@@ -88,7 +88,6 @@
88 88
89 89 extern crate rustc_plugin;
90 90 extern crate syntax;
91 -extern crate syntax_pos;
92 91 extern crate proc_macro_tokens;
93 92 #[macro_use] extern crate log;
94 93
Original file line number Diff line number Diff line change
@@ -10,5 +10,3 @@ crate-type = ["dylib"]
10 10
11 11 [dependencies]
12 12 syntax = { path = "../libsyntax" }
13 -syntax_pos = { path = "../libsyntax_pos" }
14 -log = { path = "../liblog" }
Original file line number Diff line number Diff line change
@@ -8,9 +8,6 @@
8 8 // option. This file may not be copied, modified, or distributed
9 9 // except according to those terms.
10 10
11 -extern crate syntax;
12 -extern crate syntax_pos;
13 -
14 11 use syntax::ast::Ident;
15 12 use syntax::codemap::DUMMY_SP;
16 13 use syntax::parse::token::{self, Token};
Original file line number Diff line number Diff line change
@@ -58,8 +58,6 @@
58 58 #![feature(rustc_private)]
59 59
60 60 extern crate syntax;
61 -extern crate syntax_pos;
62 -extern crate log;
63 61
64 62 pub mod build;
65 63 pub mod parse;
Original file line number Diff line number Diff line change
@@ -10,8 +10,6 @@
10 10
11 11 //! Parsing utilities for writing procedural macros.
12 12
13 -extern crate syntax;
14 -
15 13 use syntax::parse::{ParseSess, filemap_to_tts};
16 14 use syntax::tokenstream::TokenStream;
17 15
Original file line number Diff line number Diff line change
@@ -10,7 +10,6 @@ crate-type = ["dylib"]
10 10
11 11 [dependencies]
12 12 arena = { path = "../libarena" }
13 -flate = { path = "../libflate" }
14 13 fmt_macros = { path = "../libfmt_macros" }
15 14 graphviz = { path = "../libgraphviz" }
16 15 log = { path = "../liblog" }
Original file line number Diff line number Diff line change
@@ -26,7 +26,6 @@
26 26 #![feature(associated_consts)]
27 27 #![feature(box_patterns)]
28 28 #![feature(box_syntax)]
29 -#![feature(collections)]
30 29 #![feature(conservative_impl_trait)]
31 30 #![feature(const_fn)]
32 31 #![feature(core_intrinsics)]
@@ -39,11 +38,9 @@
39 38 #![feature(slice_patterns)]
40 39 #![feature(staged_api)]
41 40 #![feature(unboxed_closures)]
42 -#![cfg_attr(test, feature(test))]
43 41
44 42 extern crate arena;
45 43 extern crate core;
46 -extern crate flate;
47 44 extern crate fmt_macros;
48 45 extern crate getopts;
49 46 extern crate graphviz;
@@ -52,7 +49,6 @@ extern crate rustc_llvm as llvm;
52 49 extern crate rustc_back;
53 50 extern crate rustc_data_structures;
54 51 extern crate serialize;
55 -extern crate collections;
56 52 extern crate rustc_const_math;
57 53 extern crate rustc_errors as errors;
58 54 #[macro_use] extern crate log;
@@ -65,9 +61,6 @@ extern crate serialize as rustc_serialize; // used by deriving
65 61 // SNAP:
66 62 extern crate rustc_i128;
67 63
68 -#[cfg(test)]
69 -extern crate test;
70 -
71 64 #[macro_use]
72 65 mod macros;
73 66
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ crate-type = ["dylib"]
11 11 [dependencies]
12 12 arena = { path = "../libarena" }
13 13 log = { path = "../liblog" }
14 -serialize = { path = "../libserialize" }
15 14 rustc = { path = "../librustc" }
16 15 rustc_back = { path = "../librustc_back" }
17 16 rustc_const_math = { path = "../librustc_const_math" }
Original file line number Diff line number Diff line change
@@ -40,7 +40,6 @@ extern crate rustc_data_structures;
40 40 extern crate rustc_errors;
41 41 extern crate graphviz;
42 42 extern crate syntax_pos;
43 -extern crate serialize as rustc_serialize; // used by deriving
44 43
45 44 extern crate rustc_i128;
46 45
Original file line number Diff line number Diff line change
@@ -9,7 +9,6 @@ path = "lib.rs"
9 9 crate-type = ["dylib"]
10 10
11 11 [dependencies]
12 -log = { path = "../liblog" }
13 12 serialize = { path = "../libserialize" }
14 13 syntax = { path = "../libsyntax" }
15 14 rustc_i128 = { path = "../librustc_i128" }
Original file line number Diff line number Diff line change
@@ -28,7 +28,6 @@
28 28 #![feature(const_fn)]
29 29 #![cfg_attr(not(stage0), feature(i128))]
30 30
31 -extern crate log;
32 31 extern crate syntax;
33 32
34 33 // SNAP: remove use of this crate
Original file line number Diff line number Diff line change
@@ -10,7 +10,6 @@ crate-type = ["dylib"]
10 10
11 11 [dependencies]
12 12 arena = { path = "../libarena" }
13 -flate = { path = "../libflate" }
14 13 graphviz = { path = "../libgraphviz" }
15 14 log = { path = "../liblog" }
16 15 proc_macro_plugin = { path = "../libproc_macro_plugin" }
Original file line number Diff line number Diff line change
@@ -32,7 +32,6 @@
32 32 #![feature(staged_api)]
33 33
34 34 extern crate arena;
35 -extern crate flate;
36 35 extern crate getopts;
37 36 extern crate graphviz;
38 37 extern crate libc;
Original file line number Diff line number Diff line change
@@ -9,6 +9,4 @@ path = "lib.rs"
9 9 crate-type = ["dylib"]
10 10
11 11 [dependencies]
12 -log = { path = "../liblog" }
13 -serialize = { path = "../libserialize" }
14 12 syntax_pos = { path = "../libsyntax_pos" }
Original file line number Diff line number Diff line change
@@ -23,14 +23,9 @@
23 23 #![feature(staged_api)]
24 24 #![feature(range_contains)]
25 25 #![feature(libc)]
26 -#![feature(unicode)]
27 26
28 -extern crate serialize;
29 27 extern crate term;
30 -extern crate log;
31 28 extern crate libc;
32 -extern crate std_unicode;
33 -extern crate serialize as rustc_serialize; // used by deriving
34 29 extern crate syntax_pos;
35 30
36 31 pub use emitter::ColorConfig;
Original file line number Diff line number Diff line change
@@ -16,4 +16,3 @@ serialize = { path = "../libserialize" }
16 16 log = { path = "../liblog" }
17 17 syntax = { path = "../libsyntax" }
18 18 syntax_pos = { path = "../libsyntax_pos" }
19 -rustc_i128 = { path = "../librustc_i128" }
Original file line number Diff line number Diff line change
@@ -33,8 +33,6 @@ extern crate serialize as rustc_serialize;
33 33 extern crate syntax;
34 34 extern crate syntax_pos;
35 35
36 -extern crate rustc_i128;
37 -
38 36 const ATTR_DIRTY: &'static str = "rustc_dirty";
39 37 const ATTR_CLEAN: &'static str = "rustc_clean";
40 38 const ATTR_DIRTY_METADATA: &'static str = "rustc_metadata_dirty";
Original file line number Diff line number Diff line change
@@ -12,7 +12,6 @@ crate-type = ["dylib"]
12 12 graphviz = { path = "../libgraphviz" }
13 13 log = { path = "../liblog" }
14 14 rustc = { path = "../librustc" }
15 -rustc_back = { path = "../librustc_back" }
16 15 rustc_const_eval = { path = "../librustc_const_eval" }
17 16 rustc_const_math = { path = "../librustc_const_math" }
18 17 rustc_data_structures = { path = "../librustc_data_structures" }
Original file line number Diff line number Diff line change
@@ -31,7 +31,6 @@ extern crate graphviz as dot;
31 31 #[macro_use]
32 32 extern crate rustc;
33 33 extern crate rustc_data_structures;
34 -extern crate rustc_back;
35 34 #[macro_use]
36 35 #[no_link]
37 36 extern crate rustc_bitflags;
Original file line number Diff line number Diff line change
@@ -27,7 +27,6 @@
27 27 #![feature(staged_api)]
28 28 #![feature(rustc_private)]
29 29
30 -extern crate core;
31 30 #[macro_use]
32 31 extern crate rustc;
33 32 extern crate rustc_const_eval;
Original file line number Diff line number Diff line change
@@ -10,7 +10,6 @@ path = "lib.rs"
10 10 crate-type = ["dylib"]
11 11
12 12 [dependencies]
13 -log = { path = "../liblog" }
14 13 rustc = { path = "../librustc" }
15 14 rustc_back = { path = "../librustc_back" }
16 15 rustc_metadata = { path = "../librustc_metadata" }
Original file line number Diff line number Diff line change
@@ -63,7 +63,6 @@
63 63 #![feature(rustc_diagnostic_macros)]
64 64 #![feature(rustc_private)]
65 65
66 -extern crate log;
67 66 #[macro_use] extern crate syntax;
68 67
69 68 extern crate rustc;
Original file line number Diff line number Diff line change
@@ -10,9 +10,7 @@ crate-type = ["dylib"]
10 10 test = false
11 11
12 12 [dependencies]
13 -arena = { path = "../libarena" }
14 13 flate = { path = "../libflate" }
15 -graphviz = { path = "../libgraphviz" }
16 14 log = { path = "../liblog" }
17 15 rustc = { path = "../librustc" }
18 16 rustc_back = { path = "../librustc_back" }
@@ -25,6 +23,5 @@ rustc_incremental = { path = "../librustc_incremental" }
25 23 rustc_llvm = { path = "../librustc_llvm" }
26 24 rustc_i128 = { path = "../librustc_i128" }
27 25 rustc_platform_intrinsics = { path = "../librustc_platform_intrinsics" }
28 -serialize = { path = "../libserialize" }
29 26 syntax = { path = "../libsyntax" }
30 27 syntax_pos = { path = "../libsyntax_pos" }
Original file line number Diff line number Diff line change
@@ -40,18 +40,14 @@
40 40
41 41 use rustc::dep_graph::WorkProduct;
42 42
43 -extern crate arena;
44 43 extern crate flate;
45 -extern crate getopts;
46 -extern crate graphviz;
47 44 extern crate libc;
48 45 #[macro_use] extern crate rustc;
49 46 extern crate rustc_back;
50 47 extern crate rustc_data_structures;
51 48 extern crate rustc_incremental;
52 49 pub extern crate rustc_llvm as llvm;
53 50 extern crate rustc_platform_intrinsics as intrinsics;
54 -extern crate serialize;
55 51 extern crate rustc_const_math;
56 52 extern crate rustc_const_eval;
57 53 #[macro_use]
Original file line number Diff line number Diff line change
@@ -9,5 +9,4 @@ path = "lib.rs"
9 9 crate-type = ["dylib", "rlib"]
10 10
11 11 [dependencies]
12 -log = { path = "../liblog" }
13 12 rustc_i128 = { path = "../librustc_i128" }
Original file line number Diff line number Diff line change
@@ -31,17 +31,10 @@ Core encoding and decoding interfaces.
31 31 #![feature(collections)]
32 32 #![feature(core_intrinsics)]
33 33 #![feature(enumset)]
34 -#![feature(rustc_private)]
35 34 #![feature(specialization)]
36 35 #![feature(staged_api)]
37 -#![feature(unicode)]
38 36 #![cfg_attr(test, feature(test))]
39 37
40 -// test harness access
41 -#[cfg(test)] extern crate test;
42 -extern crate log;
43 -
44 -extern crate std_unicode;
45 38 extern crate collections;
46 39
47 40 extern crate rustc_i128;