Skip to content

Commit

Permalink
cleaned up debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
Margaret Meyerhofer committed May 23, 2012
1 parent 6077647 commit 507b8e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/librustsyntax/parse/lexer.rs
Expand Up @@ -123,10 +123,9 @@ fn consume_any_line_comment(rdr: reader) {
if rdr.next() == '!' {
let cmap = codemap::new_codemap();
(*cmap).files.push(rdr.filemap);
let mut loc = codemap::lookup_char_pos_adj(cmap, rdr.chpos);
let loc = codemap::lookup_char_pos_adj(cmap, rdr.chpos);
if loc.line == 1u && loc.col == 0u {
while rdr.curr != '\n' && !rdr.is_eof() { rdr.bump(); }
loc = codemap::lookup_char_pos_adj(cmap, rdr.chpos);
ret consume_whitespace_and_comments(rdr);
}
}
Expand Down

0 comments on commit 507b8e5

Please sign in to comment.