Skip to content

Commit

Permalink
Uncommented missed spans check
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrewster committed Mar 12, 2016
1 parent de95b4c commit 87a5d88
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/missed_spans.rs
Expand Up @@ -47,10 +47,10 @@ impl<'a> FmtVisitor<'a> {
return;
}

// assert!(start < end,
// "Request to format inverted span: {:?} to {:?}",
// self.codemap.lookup_char_pos(start),
// self.codemap.lookup_char_pos(end));
assert!(start < end,
"Request to format inverted span: {:?} to {:?}",
self.codemap.lookup_char_pos(start),
self.codemap.lookup_char_pos(end));

self.last_pos = end;
let span = codemap::mk_sp(start, end);
Expand Down

0 comments on commit 87a5d88

Please sign in to comment.