]> git.lizzy.rs Git - rust.git/commitdiff
warn on anon params in 015
authorMark Mansi <markm@cs.wisc.edu>
Sat, 11 Aug 2018 16:15:57 +0000 (11:15 -0500)
committerMark Mansi <markm@cs.wisc.edu>
Mon, 27 Aug 2018 17:40:16 +0000 (12:40 -0500)
src/librustc_lint/builtin.rs

index 92a2ea2bf2d7eac14d23a74403fa353a21bd2971..6d8a83d095d9a271392c8d110166525cd489f9e7 100644 (file)
@@ -630,7 +630,7 @@ fn check_item(&mut self, cx: &LateContext, item: &hir::Item) {
     pub ANONYMOUS_PARAMETERS,
     Allow,
     "detects anonymous parameters",
-    Edition::Edition2018 => Warn
+    Warn,
 }
 
 /// Checks for use of anonymous parameters (RFC 1685)