1
Fork 0

Span::{before, after}Span::{start, end}

This commit is contained in:
Jacob Pratt 2023-05-14 18:11:27 -04:00
parent dc76991d2f
commit 87ec0738ab
No known key found for this signature in database
GPG key ID: 6E2E55C5F9ABB247
4 changed files with 10 additions and 10 deletions

View file

@ -648,11 +648,11 @@ impl server::Span for Rustc<'_, '_> {
Range { start: relative_start_pos.0 as usize, end: relative_end_pos.0 as usize }
}
fn before(&mut self, span: Self::Span) -> Self::Span {
fn start(&mut self, span: Self::Span) -> Self::Span {
span.shrink_to_lo()
}
fn after(&mut self, span: Self::Span) -> Self::Span {
fn end(&mut self, span: Self::Span) -> Self::Span {
span.shrink_to_hi()
}