Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve comment
  • Loading branch information
ecstatic-morse committed Dec 13, 2019
commit a8e997c819cc3cb9c70062da93809cd6f2540a0a
4 changes: 2 additions & 2 deletions src/librustc_passes/check_const.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down