1
Fork 0

auto merge of #10567 : sanxiyn/rust/bytepos, r=alexcrichton

This commit is contained in:
bors 2013-11-20 23:31:27 -08:00
commit ea5d1dfb1c
6 changed files with 17 additions and 15 deletions

View file

@ -2119,7 +2119,7 @@ pub fn maybe_print_trailing_comment(s: @ps, span: codemap::Span,
if (*cmnt).style != comments::trailing { return; }
let span_line = cm.lookup_char_pos(span.hi);
let comment_line = cm.lookup_char_pos((*cmnt).pos);
let mut next = (*cmnt).pos + BytePos(1u);
let mut next = (*cmnt).pos + BytePos(1);
match next_pos { None => (), Some(p) => next = p }
if span.hi < (*cmnt).pos && (*cmnt).pos < next &&
span_line.line == comment_line.line {