From 08ede49dcb0ae9a085f1cb8ccf6bc0ba682c83e7 Mon Sep 17 00:00:00 2001 From: Igor Matuszewski Date: Mon, 13 May 2019 12:07:43 +0200 Subject: [PATCH 1/1] Remove redundant, commented out code It was commented out as part of https://github.com/rust-lang/rust/commit/8a8e497ae786ffc032c1e68fc23da0edcf6fa5e3. Done probably by accident, since the code in question was moved to a match arm, along with newly introduced logic to detect bare CRs in raw strings. --- src/libsyntax/parse/lexer/mod.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/libsyntax/parse/lexer/mod.rs b/src/libsyntax/parse/lexer/mod.rs index c42f694f50a..02ef94fe9ad 100644 --- a/src/libsyntax/parse/lexer/mod.rs +++ b/src/libsyntax/parse/lexer/mod.rs @@ -1275,12 +1275,6 @@ fn scan_raw_string(&mut self) -> (token::LitKind, Symbol) { let mut content_end_bpos; let mut valid = true; 'outer: loop { - // if self.ch_is('"') { - // content_end_bpos = self.pos; - // for _ in 0..hash_count { - // self.bump(); - // if !self.ch_is('#') { - // continue 'outer; match self.ch { None => { self.fail_unterminated_raw_string(start_bpos, hash_count); -- 2.44.0