Skip to content
/ rust Public
forked from rust-lang/rust

Commit 247b58b

Browse files
committed
Allow unused extern crate again
This is a partial revert of rust-lang#42588. There is a usability concern reported in rust-lang#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 rust-lang#44294 does not trigger the lint.
1 parent 7a9cdc4 commit 247b58b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/lint/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ declare_lint! {
3030

3131
declare_lint! {
3232
pub UNUSED_EXTERN_CRATES,
33-
Warn,
33+
Allow,
3434
"extern crates that are never used"
3535
}
3636

0 commit comments

Comments
 (0)