Skip to content

Commit

Permalink
Fixed filename in addrspan output
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanWilliams authored and hlorenzi committed Dec 2, 2023
1 parent 8072512 commit 1172abe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/util/bitvec_format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,11 @@ impl util::BitVec
{
let (line_start, col_start) = counter.get_line_column_at_index(start);
let (line_end, col_end) = counter.get_line_column_at_index(end);
let filename = fileserver.get_filename(span.span.file_handle);

result.push_str(
&format!("{}:{}:{}:{}:{}",
&span.span.file_handle,
filename,
line_start, col_start,
line_end, col_end));
}
Expand All @@ -531,4 +532,4 @@ impl util::BitVec

result
}
}
}

0 comments on commit 1172abe

Please sign in to comment.