]> git.lizzy.rs Git - rust.git/commitdiff
Update FIXME
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Sat, 15 Jul 2017 02:33:45 +0000 (04:33 +0200)
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Fri, 28 Jul 2017 13:46:26 +0000 (15:46 +0200)
src/librustc_typeck/check/closure.rs

index 0f68b15977848d7ace2f1ce14b9925abc2598e9e..7e7e1018f97767c1fce74f79c1b0a38e220bf360 100644 (file)
@@ -32,7 +32,8 @@ pub fn check_expr_closure(&self,
         debug!("check_expr_closure(expr={:?},expected={:?})",
                expr,
                expected);
-        // FIXME: See if expected_kind here can impact generators
+        // FIXME: Should we adapt deduce_expectations_from_expected_type to work with
+        // generator traits? It looks like it's conservative to add support for this later.
 
         // It's always helpful for inference if we know the kind of
         // closure sooner rather than later, so first examine the expected