]> git.lizzy.rs Git - rust.git/commitdiff
Remove redundant, commented out code
authorIgor Matuszewski <Xanewok@gmail.com>
Mon, 13 May 2019 10:07:43 +0000 (12:07 +0200)
committerIgor Matuszewski <Xanewok@gmail.com>
Sat, 8 Jun 2019 18:05:02 +0000 (20:05 +0200)
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

index c42f694f50a000942aafb708cb6137b6d3384b71..02ef94fe9adba2b24865244f73b89c36cc729c21 100644 (file)
@@ -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);