Uncommented missed spans check
This commit is contained in:
parent
de95b4cefb
commit
87a5d88aeb
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user