Renamed to byte_range and changed Range generics [skip ci]
This commit is contained in:
parent
3a3ecbfae6
commit
c67ae04aca
4 changed files with 6 additions and 7 deletions
|
@ -634,8 +634,8 @@ impl server::Span for Rustc<'_, '_> {
|
|||
span.source_callsite()
|
||||
}
|
||||
|
||||
fn position(&mut self, span: Self::Span) -> Range<u32> {
|
||||
Range { start: span.lo().0, end: span.hi().0 }
|
||||
fn byte_range(&mut self, span: Self::Span) -> Range<usize> {
|
||||
Range { start: span.lo().0 as usize, end: span.hi().0 as usize }
|
||||
}
|
||||
|
||||
fn start(&mut self, span: Self::Span) -> LineColumn {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue