about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorNiv Kaminer <nivkner@zoho.com>2018-03-17 14:49:40 +0200
committerNiv Kaminer <nivkner@zoho.com>2018-03-17 20:25:23 +0200
commitc8be5c3174f3cf2856a19db23cba1b7313068690 (patch)
treece9fdf53826c1decea58e50854f26ed62fbefa55 /src/libsyntax/parse
parentbe73a1f963e7830de2dbfbea6b362673ab7e6ded (diff)
downloadrust-c8be5c3174f3cf2856a19db23cba1b7313068690.tar.gz
rust-c8be5c3174f3cf2856a19db23cba1b7313068690.zip
remove FIXME(#8372) since for-loops wont support borrowing iterators
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/mod.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs
index ff097c362fe..fdb3b91fbbf 100644
--- a/src/libsyntax/parse/mod.rs
+++ b/src/libsyntax/parse/mod.rs
@@ -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