about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-09-27 08:20:11 +0000
committerbors <bors@rust-lang.org>2017-09-27 08:20:11 +0000
commit412ac93dceb176f7aca9328947b02c6c412d8299 (patch)
tree5dd9c9752867543a968162664258f599566752a0
parente53ab9104aa7a0c9df670889808f098a6c09f422 (diff)
parent247b58b4f4de332964ec26e265a6150d630d60d7 (diff)
downloadrust-412ac93dceb176f7aca9328947b02c6c412d8299.tar.gz
rust-412ac93dceb176f7aca9328947b02c6c412d8299.zip
Auto merge of #44825 - dtolnay:cratelint, r=aturon
Allow unused extern crate again

This is a partial revert of #42588. There is a usability concern reported in #44294 that was not considered in the discussion of the PR, so I would like to back this out of 1.21. As is, I think users would have a worse and more confusing experience with this lint enabled by default. We can re-enabled once there are better diagnostics or the case in #44294 does not trigger the lint.
-rw-r--r--src/librustc/lint/builtin.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/lint/builtin.rs b/src/librustc/lint/builtin.rs
index 21852468146..5fe75d8ca71 100644
--- a/src/librustc/lint/builtin.rs
+++ b/src/librustc/lint/builtin.rs
@@ -30,7 +30,7 @@ declare_lint! {
 
 declare_lint! {
     pub UNUSED_EXTERN_CRATES,
-    Warn,
+    Allow,
     "extern crates that are never used"
 }