Skip to content

Commit 4895764

Browse files
committed
Cleanup dependencies and features
1 parent d85b806 commit 4895764

File tree

4 files changed

+11
-59
lines changed

4 files changed

+11
-59
lines changed

Cargo.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,16 @@ name = "cargo-clippy"
2323
test = false
2424

2525
[dependencies]
26-
regex-syntax = "0.3.0"
2726
regex_macros = { version = "0.1.33", optional = true }
28-
semver = "0.2.1"
29-
toml = "0.1"
30-
unicode-normalization = "0.1"
31-
quine-mc_cluskey = "0.2.2"
3227
# begin automatic update
3328
clippy_lints = { version = "0.0.75", path = "clippy_lints" }
3429
# end automatic update
35-
rustc-serialize = "0.3"
3630

3731
[dev-dependencies]
3832
compiletest_rs = "0.2.0"
3933
lazy_static = "0.1.15"
4034
regex = "0.1.56"
35+
rustc-serialize = "0.3"
4136

4237
[features]
4338
debugging = []

clippy_lints/src/lib.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
// error-pattern:cargo-clippy
22

3-
#![feature(type_macros)]
4-
#![feature(plugin_registrar, box_syntax)]
5-
#![feature(rustc_private, collections)]
6-
#![feature(iter_arith)]
3+
#![feature(box_syntax)]
4+
#![feature(collections)]
75
#![feature(custom_attribute)]
8-
#![feature(slice_patterns)]
6+
#![feature(iter_arith)]
97
#![feature(question_mark)]
8+
#![feature(rustc_private)]
9+
#![feature(slice_patterns)]
1010
#![feature(stmt_expr_attributes)]
11-
#![allow(indexing_slicing, shadow_reuse, unknown_lints)]
11+
#![feature(type_macros)]
1212

13-
extern crate rustc_driver;
14-
extern crate getopts;
13+
#![allow(indexing_slicing, shadow_reuse, unknown_lints)]
1514

1615
#[macro_use]
1716
extern crate syntax;

src/lib.rs

Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,15 @@
11
// error-pattern:cargo-clippy
2-
#![feature(type_macros)]
3-
#![feature(plugin_registrar, box_syntax)]
4-
#![feature(rustc_private, collections)]
5-
#![feature(custom_attribute)]
6-
#![feature(slice_patterns)]
7-
#![feature(question_mark)]
8-
#![feature(stmt_expr_attributes)]
9-
#![allow(indexing_slicing, shadow_reuse, unknown_lints)]
10-
11-
#[macro_use]
12-
extern crate syntax;
13-
#[macro_use]
14-
extern crate rustc;
15-
16-
extern crate toml;
17-
18-
// Only for the compile time checking of paths
19-
extern crate core;
20-
extern crate collections;
21-
22-
// for unicode nfc normalization
23-
extern crate unicode_normalization;
24-
25-
// for semver check in attrs.rs
26-
extern crate semver;
27-
28-
// for regex checking
29-
extern crate regex_syntax;
30-
31-
// for finding minimal boolean expressions
32-
extern crate quine_mc_cluskey;
2+
#![feature(plugin_registrar)]
3+
#![feature(rustc_private)]
4+
#![allow(unknown_lints)]
335

346
extern crate rustc_plugin;
35-
extern crate rustc_const_eval;
36-
extern crate rustc_const_math;
377
use rustc_plugin::Registry;
388

399
extern crate clippy_lints;
4010

4111
pub use clippy_lints::*;
4212

43-
macro_rules! declare_restriction_lint {
44-
{ pub $name:tt, $description:tt } => {
45-
declare_lint! { pub $name, Allow, $description }
46-
};
47-
}
48-
49-
mod reexport {
50-
pub use syntax::ast::{Name, NodeId};
51-
}
52-
5313
#[plugin_registrar]
5414
pub fn plugin_registrar(reg: &mut Registry) {
5515
register_plugins(reg);

src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
// error-pattern:yummy
22
#![feature(box_syntax)]
33
#![feature(rustc_private)]
4-
#![feature(slice_patterns)]
54

65
extern crate rustc_driver;
76
extern crate getopts;
87
extern crate rustc;
98
extern crate syntax;
109
extern crate rustc_plugin;
1110
extern crate clippy_lints;
12-
extern crate rustc_serialize;
1311

1412
use rustc_driver::{driver, CompilerCalls, RustcDefaultCalls, Compilation};
1513
use rustc::session::{config, Session};

0 commit comments

Comments
 (0)