about summary refs log tree commit diff
path: root/src/librustc_back
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-09-12 19:05:53 +0000
committerbors <bors@rust-lang.org>2014-09-12 19:05:53 +0000
commit8780d9c6b5abce83089ca1dafb7efd178569a052 (patch)
tree0ea04c413b3aea1d8477956f19ffb199deb28537 /src/librustc_back
parent9c68679f2ebd5b165694e9346e4ad96a3e32aceb (diff)
parent8e61612889233e7df26067e9d1c0ec7ffbac630c (diff)
downloadrust-8780d9c6b5abce83089ca1dafb7efd178569a052.tar.gz
rust-8780d9c6b5abce83089ca1dafb7efd178569a052.zip
auto merge of #17134 : vberger/rust/lint_unused_extern_crate, r=alexcrichton
This PR creates a new lint : ``unused_extern_crate``, which do pretty much the same thing as ``unused_import``, but for ``extern crate`` statements. It is related to feature request #10385.

I adapted the code tracking used imports so that it tracks extern crates usage as well. This was mainly trial and error and while I believe all cases are covered, there might be some code I added that is useless (long compile times didn't give me the opportunity to check this in detail).

Also, I removed some unused ``extern crate`` statements from the libs, that where spotted by this new lint.
Diffstat (limited to 'src/librustc_back')
-rw-r--r--src/librustc_back/lib.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/librustc_back/lib.rs b/src/librustc_back/lib.rs
index 5db6c729755..e48f9df7564 100644
--- a/src/librustc_back/lib.rs
+++ b/src/librustc_back/lib.rs
@@ -36,8 +36,6 @@
 #[phase(plugin, link)]
 extern crate log;
 extern crate syntax;
-extern crate libc;
-extern crate flate;
 extern crate serialize;
 
 pub mod abi;