about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan MacKenzie <ecstaticmorse@gmail.com>2019-12-10 22:24:10 -0800
committerDylan MacKenzie <ecstaticmorse@gmail.com>2019-12-13 10:39:14 -0800
commita8e997c819cc3cb9c70062da93809cd6f2540a0a (patch)
tree84922be633190a29c1092ab0a05431e4a53b252f
parent2add77dffbf746ed95a5420f23bbaff6b3f99be5 (diff)
downloadrust-a8e997c819cc3cb9c70062da93809cd6f2540a0a.tar.gz
rust-a8e997c819cc3cb9c70062da93809cd6f2540a0a.zip
Improve comment
-rw-r--r--src/librustc_passes/check_const.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_passes/check_const.rs b/src/librustc_passes/check_const.rs
index e108dfb8173..a60e005797e 100644
--- a/src/librustc_passes/check_const.rs
+++ b/src/librustc_passes/check_const.rs
@@ -56,8 +56,8 @@ impl NonConstExpr {
             | Self::Match(WhileLetDesugar)
             => &[sym::const_loop, sym::const_if_match],
 
-            // `for` loops desugar to a call to `FromIterator::from_iterator`,
-            // so they are not yet supported behind a feature flag.
+            // A `for` loop's desugaring contains a call to `FromIterator::from_iter`,
+            // so they are not yet allowed with `#![feature(const_loop)]`.
             _ => return None,
         };