diff --git a/compiler/rustc_expand/src/proc_macro_server.rs b/compiler/rustc_expand/src/proc_macro_server.rs index a4578bd58357..e240b7d45514 100644 --- a/compiler/rustc_expand/src/proc_macro_server.rs +++ b/compiler/rustc_expand/src/proc_macro_server.rs @@ -635,7 +635,7 @@ impl server::Span for Rustc<'_, '_> { } fn position(&mut self, span: Self::Span) -> Range { - Range { start: span.lo().0, end: span.lo().0 } + Range { start: span.lo().0, end: span.hi().0 } } fn start(&mut self, span: Self::Span) -> LineColumn {