]> git.lizzy.rs Git - rust.git/commitdiff
Make `late_bound_lifetime_arguments` lint warn-by-default
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Mon, 17 Jul 2017 21:33:44 +0000 (00:33 +0300)
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Mon, 17 Jul 2017 21:33:44 +0000 (00:33 +0300)
src/librustc/lint/builtin.rs
src/test/compile-fail/method-call-lifetime-args-lint.rs

index 3e71ac539a3417f6b512a0bc34421255e4ef2fac..cbe642a9a76a65b3afca29288f97de502778745e 100644 (file)
 
 declare_lint! {
     pub LATE_BOUND_LIFETIME_ARGUMENTS,
-    Deny,
+    Warn,
     "detects generic lifetime arguments in path segments with late bound lifetime parameters"
 }
 
index b206924e538f36d0521a281e917040b37688aa1f..b2a94e0af420d41a5b045e96521bf4df02a93335 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![deny(late_bound_lifetime_arguments)]
 #![allow(unused)]
 
 struct S;