Skip to content

Commit a8e997c

Browse files
Improve comment
1 parent 2add77d commit a8e997c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_passes/check_const.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ impl NonConstExpr {
5656
| Self::Match(WhileLetDesugar)
5757
=> &[sym::const_loop, sym::const_if_match],
5858

59-
// `for` loops desugar to a call to `FromIterator::from_iterator`,
60-
// so they are not yet supported behind a feature flag.
59+
// A `for` loop's desugaring contains a call to `FromIterator::from_iter`,
60+
// so they are not yet allowed with `#![feature(const_loop)]`.
6161
_ => return None,
6262
};
6363

0 commit comments

Comments
 (0)