remove lookup_char_pos_adj
It is now exactly equivalent to lookup_char_pos.
This commit is contained in:
parent
20dbf28624
commit
63080b3c25
5 changed files with 9 additions and 30 deletions
|
|
@ -278,7 +278,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
|
|||
}
|
||||
|
||||
fn explain_span(self, heading: &str, span: Span) -> (String, Option<Span>) {
|
||||
let lo = self.sess.source_map().lookup_char_pos_adj(span.lo());
|
||||
let lo = self.sess.source_map().lookup_char_pos(span.lo());
|
||||
(
|
||||
format!("the {} at {}:{}", heading, lo.line, lo.col.to_usize() + 1),
|
||||
Some(span),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue