From 3a3ecbfae6a0975237f203a8a5be4d485bb789e7 Mon Sep 17 00:00:00 2001 From: Michael van Straten Date: Fri, 10 Mar 2023 23:48:17 +0100 Subject: [PATCH] Fixed extra call to lo in end [skip ci] --- compiler/rustc_expand/src/proc_macro_server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {