Skip to content

Commit 3a3ecbf

Browse files
Fixed extra call to lo in end [skip ci]
1 parent af24c37 commit 3a3ecbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_expand/src/proc_macro_server.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ impl server::Span for Rustc<'_, '_> {
635635
}
636636

637637
fn position(&mut self, span: Self::Span) -> Range<u32> {
638-
Range { start: span.lo().0, end: span.lo().0 }
638+
Range { start: span.lo().0, end: span.hi().0 }
639639
}
640640

641641
fn start(&mut self, span: Self::Span) -> LineColumn {

0 commit comments

Comments
 (0)