We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2add77d commit a8e997cCopy full SHA for a8e997c
src/librustc_passes/check_const.rs
@@ -56,8 +56,8 @@ impl NonConstExpr {
56
| Self::Match(WhileLetDesugar)
57
=> &[sym::const_loop, sym::const_if_match],
58
59
- // `for` loops desugar to a call to `FromIterator::from_iterator`,
60
- // 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)]`.
61
_ => return None,
62
};
63
0 commit comments