File tree 1 file changed +2
-2
lines changed
compiler/rustc_expand/src 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -633,13 +633,13 @@ impl server::Span for Rustc<'_, '_> {
633
633
fn start ( & mut self , span : Self :: Span ) -> LineColumn {
634
634
let loc = self . sess ( ) . source_map ( ) . lookup_char_pos ( span. lo ( ) ) ;
635
635
//FIXME: LineColumn.column is 1-based, but loc.col is 0-based
636
- LineColumn { line : loc. line . to_usize ( ) , column : loc. col . to_usize ( ) }
636
+ LineColumn { line : loc. line . to_usize ( ) , column : loc. col . to_usize ( ) + 1 }
637
637
}
638
638
639
639
fn end ( & mut self , span : Self :: Span ) -> LineColumn {
640
640
let loc = self . sess ( ) . source_map ( ) . lookup_char_pos ( span. hi ( ) ) ;
641
641
//FIXME: and here
642
- LineColumn { line : loc. line . to_usize ( ) , column : loc. col . to_usize ( ) }
642
+ LineColumn { line : loc. line . to_usize ( ) , column : loc. col . to_usize ( ) + 1 }
643
643
}
644
644
645
645
fn before ( & mut self , span : Self :: Span ) -> Self :: Span {
You can’t perform that action at this time.
0 commit comments