]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/parse/mod.rs
Rollup merge of #49117 - nivkner:fixme_fixup3, r=estebank
[rust.git] / src / libsyntax / parse / mod.rs
index f7e5d40b52468821e79a28e324a01cdd866fdb1f..202dc03eaa41d511452cb28880e194460d610dc9 100644 (file)
@@ -298,7 +298,6 @@ pub fn str_lit(lit: &str, diag: Option<(Span, &Handler)>) -> String {
     debug!("parse_str_lit: given {}", escape_default(lit));
     let mut res = String::with_capacity(lit.len());
 
-    // FIXME #8372: This could be a for-loop if it didn't borrow the iterator
     let error = |i| format!("lexer should have rejected {} at {}", lit, i);
 
     /// Eat everything up to a non-whitespace
@@ -503,7 +502,6 @@ pub fn byte_lit(lit: &str) -> (u8, usize) {
 pub fn byte_str_lit(lit: &str) -> Lrc<Vec<u8>> {
     let mut res = Vec::with_capacity(lit.len());
 
-    // FIXME #8372: This could be a for-loop if it didn't borrow the iterator
     let error = |i| format!("lexer should have rejected {} at {}", lit, i);
 
     /// Eat everything up to a non-whitespace