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, };