]> git.lizzy.rs Git - rust.git/commitdiff
rustc: Make unused_features lint warn by default
authorBrian Anderson <banderson@mozilla.com>
Sat, 31 Jan 2015 06:27:36 +0000 (22:27 -0800)
committerBrian Anderson <banderson@mozilla.com>
Sat, 31 Jan 2015 06:27:36 +0000 (22:27 -0800)
When it was un*known*_features it was reasonably to by deny by default.

cc #21798

src/librustc/lint/builtin.rs

index ae537e557e7d0e9006040651335d0fdce428b949..41a4dd3657479a89833b1bff68d03c387a3e498d 100644 (file)
@@ -1984,7 +1984,7 @@ fn id_refers_to_this_method<'tcx>(tcx: &ty::ctxt<'tcx>,
 
 declare_lint! {
     pub UNUSED_FEATURES,
-    Deny,
+    Warn,
     "unused or unknown features found in crate-level #[feature] directives"
 }