@@ -56,7 +56,7 @@ impl NonConstExpr {
56
56
| Self :: Match ( WhileLetDesugar )
57
57
=> & [ sym:: const_loop, sym:: const_if_match] ,
58
58
59
- // A `for` loop's desugaring contains a call to `FromIterator::from_iter `,
59
+ // A `for` loop's desugaring contains a call to `IntoIterator::into_iter `,
60
60
// so they are not yet allowed with `#![feature(const_loop)]`.
61
61
_ => return None ,
62
62
} ;
@@ -167,10 +167,10 @@ impl<'tcx> CheckConstVisitor<'tcx> {
167
167
// If the user enabled `#![feature(const_loop)]` but not `#![feature(const_if_match)]`,
168
168
// explain why their `while` loop is being rejected.
169
169
& [ gate @ sym:: const_if_match] if gates. contains ( & sym:: const_loop) => {
170
- let mut err = feature_err ( & self . tcx . sess . parse_sess , gate, span, & msg) ;
171
- err . note ( "`#![feature(const_loop)]` alone is not sufficient, \
172
- since this loop expression contains an implicit conditional") ;
173
- err . emit ( ) ;
170
+ feature_err ( & self . tcx . sess . parse_sess , gate, span, & msg)
171
+ . note ( "`#![feature(const_loop)]` alone is not sufficient, \
172
+ since this loop expression contains an implicit conditional")
173
+ . emit ( ) ;
174
174
}
175
175
176
176
& [ missing_primary, ref missing_secondary @ ..] => {
0 commit comments