@@ -430,7 +430,6 @@ impl CodeMap {
430
430
431
431
/// Converts an absolute BytePos to a CharPos relative to the filemap and above.
432
432
pub fn bytepos_to_file_charpos ( & self , bpos : BytePos ) -> CharPos {
433
- debug ! ( "codemap: converting {:?} to char pos" , bpos) ;
434
433
let idx = self . lookup_filemap_idx ( bpos) ;
435
434
let files = self . files . borrow ( ) ;
436
435
let map = files. get ( idx) ;
@@ -439,7 +438,7 @@ impl CodeMap {
439
438
let mut total_extra_bytes = 0 ;
440
439
441
440
for mbc in map. multibyte_chars . borrow ( ) . iter ( ) {
442
- debug ! ( "codemap: {:? }-byte char at {:? }" , mbc. bytes, mbc. pos) ;
441
+ debug ! ( "{ }-byte char at {}" , mbc. bytes, mbc. pos) ;
443
442
if mbc. pos < bpos {
444
443
// every character is at least one byte, so we only
445
444
// count the actual extra bytes.
@@ -514,11 +513,11 @@ impl CodeMap {
514
513
let chpos = self . bytepos_to_file_charpos ( pos) ;
515
514
let linebpos = * f. lines . borrow ( ) . get ( a) ;
516
515
let linechpos = self . bytepos_to_file_charpos ( linebpos) ;
517
- debug ! ( "codemap: byte pos {:? } is on the line at byte pos {:? }" ,
516
+ debug ! ( "byte pos {} is on the line at byte pos {}" ,
518
517
pos, linebpos) ;
519
- debug ! ( "codemap: char pos {:? } is on the line at char pos {:? }" ,
518
+ debug ! ( "char pos {} is on the line at char pos {}" ,
520
519
chpos, linechpos) ;
521
- debug ! ( "codemap: byte is on line: {:? }" , line) ;
520
+ debug ! ( "byte is on line: {}" , line) ;
522
521
assert ! ( chpos >= linechpos) ;
523
522
Loc {
524
523
file : f,
0 commit comments