Skip to content

Commit 507b8e5

Browse files
author
Margaret Meyerhofer
committed
cleaned up debugging code
1 parent 6077647 commit 507b8e5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustsyntax/parse/lexer.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,9 @@ fn consume_any_line_comment(rdr: reader) {
123123
if rdr.next() == '!' {
124124
let cmap = codemap::new_codemap();
125125
(*cmap).files.push(rdr.filemap);
126-
let mut loc = codemap::lookup_char_pos_adj(cmap, rdr.chpos);
126+
let loc = codemap::lookup_char_pos_adj(cmap, rdr.chpos);
127127
if loc.line == 1u && loc.col == 0u {
128128
while rdr.curr != '\n' && !rdr.is_eof() { rdr.bump(); }
129-
loc = codemap::lookup_char_pos_adj(cmap, rdr.chpos);
130129
ret consume_whitespace_and_comments(rdr);
131130
}
132131
}

0 commit comments

Comments
 (0)