From a8e997c819cc3cb9c70062da93809cd6f2540a0a Mon Sep 17 00:00:00 2001 From: Dylan MacKenzie Date: Tue, 10 Dec 2019 22:24:10 -0800 Subject: [PATCH] Improve comment --- src/librustc_passes/check_const.rs | 4 ++-- 1 file 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, };