diff options
| author | Michael van Straten <michael@vanstraten.de> | 2023-03-10 23:48:17 +0100 |
|---|---|---|
| committer | Michael van Straten <michael@vanstraten.de> | 2023-03-10 23:48:17 +0100 |
| commit | 3a3ecbfae6a0975237f203a8a5be4d485bb789e7 (patch) | |
| tree | d28bc3fe433c99736307df90c0c41c14ae2b6068 | |
| parent | af24c376a20d6be830216ceba1b1398797096de5 (diff) | |
| download | rust-3a3ecbfae6a0975237f203a8a5be4d485bb789e7.tar.gz rust-3a3ecbfae6a0975237f203a8a5be4d485bb789e7.zip | |
Fixed extra call to lo in end [skip ci]
| -rw-r--r-- | compiler/rustc_expand/src/proc_macro_server.rs | 2 |
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 { |
