Skip to content

Commit c8be5c3

Browse files
committed
remove FIXME(#8372) since for-loops wont support borrowing iterators
1 parent be73a1f commit c8be5c3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/libsyntax/parse/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ pub fn str_lit(lit: &str, diag: Option<(Span, &Handler)>) -> String {
298298
debug!("parse_str_lit: given {}", escape_default(lit));
299299
let mut res = String::with_capacity(lit.len());
300300

301-
// FIXME #8372: This could be a for-loop if it didn't borrow the iterator
302301
let error = |i| format!("lexer should have rejected {} at {}", lit, i);
303302

304303
/// Eat everything up to a non-whitespace
@@ -503,7 +502,6 @@ pub fn byte_lit(lit: &str) -> (u8, usize) {
503502
pub fn byte_str_lit(lit: &str) -> Lrc<Vec<u8>> {
504503
let mut res = Vec::with_capacity(lit.len());
505504

506-
// FIXME #8372: This could be a for-loop if it didn't borrow the iterator
507505
let error = |i| format!("lexer should have rejected {} at {}", lit, i);
508506

509507
/// Eat everything up to a non-whitespace

0 commit comments

Comments
 (0)