about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--compiler/rustc_expand/src/proc_macro_server.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_expand/src/proc_macro_server.rs b/compiler/rustc_expand/src/proc_macro_server.rs
index a4578bd5835..e240b7d4551 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<u32> {
-        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 {