File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/rustc_expand/src Expand file tree Collapse file tree 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<'_, '_> {
633633 fn start ( & mut self , span : Self :: Span ) -> LineColumn {
634634 let loc = self . sess ( ) . source_map ( ) . lookup_char_pos ( span. lo ( ) ) ;
635635 //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 }
637637 }
638638
639639 fn end ( & mut self , span : Self :: Span ) -> LineColumn {
640640 let loc = self . sess ( ) . source_map ( ) . lookup_char_pos ( span. hi ( ) ) ;
641641 //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 }
643643 }
644644
645645 fn before ( & mut self , span : Self :: Span ) -> Self :: Span {
You can’t perform that action at this time.
0 commit comments