about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2017-07-15 04:33:45 +0200
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2017-07-28 15:46:26 +0200
commite4fdbcbc9fdc7c3e1670e5c981acbf013ffa51bc (patch)
treec85f249679d3f294abffed6027b56dd1f7b18f96 /src
parentb744b1cfe35b6a5ea81d4a145616e7337378ab2d (diff)
downloadrust-e4fdbcbc9fdc7c3e1670e5c981acbf013ffa51bc.tar.gz
rust-e4fdbcbc9fdc7c3e1670e5c981acbf013ffa51bc.zip
Update FIXME
Diffstat (limited to 'src')
-rw-r--r--src/librustc_typeck/check/closure.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc_typeck/check/closure.rs b/src/librustc_typeck/check/closure.rs
index 0f68b159778..7e7e1018f97 100644
--- a/src/librustc_typeck/check/closure.rs
+++ b/src/librustc_typeck/check/closure.rs
@@ -32,7 +32,8 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
         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