]> git.lizzy.rs Git - rust.git/commitdiff
Remove a FIXME and apply the same hack as closures
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Sat, 15 Jul 2017 06:15:33 +0000 (08:15 +0200)
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Fri, 28 Jul 2017 13:46:27 +0000 (15:46 +0200)
src/librustc_typeck/check/mod.rs

index 6125300fd2e6c09ca9e1ada1ff8dc8e8828cca16..7d3cfb448ca63537d12fd548fdd5933f6f1cb84f 100644 (file)
@@ -2550,8 +2550,7 @@ fn parameter_count_error<'tcx>(sess: &Session, sp: Span, expected_count: usize,
                 }
 
                 let is_closure = match arg.node {
-                    // FIXME: Should this be applied for generators?
-                    hir::ExprClosure(.., hir::IsGenerator::No) => true,
+                    hir::ExprClosure(..) => true,
                     _ => false
                 };