Skip to content

Commit a8ff418

Browse files
committed
---
yaml --- r: 123701 b: refs/heads/try c: 5f970e6 h: refs/heads/master i: 123699: fcb28cf v: v3
1 parent 7362916 commit a8ff418

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: da4e4e4e0a7778a85748aa4a303b13f603e96b4b
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 8ddd286ea4ba4384a0dc9eae393ed515460a986e
5-
refs/heads/try: ae9a92bd4ef25b8aba0ef06e7ad26319691e9e5a
5+
refs/heads/try: 5f970e690f2ca7ddb7884b6b8752baf3771ad459
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/libsyntax/codemap.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,6 @@ impl CodeMap {
430430

431431
/// Converts an absolute BytePos to a CharPos relative to the filemap and above.
432432
pub fn bytepos_to_file_charpos(&self, bpos: BytePos) -> CharPos {
433-
debug!("codemap: converting {:?} to char pos", bpos);
434433
let idx = self.lookup_filemap_idx(bpos);
435434
let files = self.files.borrow();
436435
let map = files.get(idx);
@@ -439,7 +438,7 @@ impl CodeMap {
439438
let mut total_extra_bytes = 0;
440439

441440
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);
443442
if mbc.pos < bpos {
444443
// every character is at least one byte, so we only
445444
// count the actual extra bytes.
@@ -514,11 +513,11 @@ impl CodeMap {
514513
let chpos = self.bytepos_to_file_charpos(pos);
515514
let linebpos = *f.lines.borrow().get(a);
516515
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 {}",
518517
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 {}",
520519
chpos, linechpos);
521-
debug!("codemap: byte is on line: {:?}", line);
520+
debug!("byte is on line: {}", line);
522521
assert!(chpos >= linechpos);
523522
Loc {
524523
file: f,

0 commit comments

Comments
 (0)