remove lookup_char_pos_adj

It is now exactly equivalent to lookup_char_pos.
This commit is contained in:
Aleksey Kladov 2019-04-05 22:42:40 +03:00
parent 20dbf28624
commit 63080b3c25
5 changed files with 9 additions and 30 deletions

View file

@ -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),