about summary refs log tree commit diff
path: root/compiler/rustc_expand/src
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2023-05-14 18:11:27 -0400
committerJacob Pratt <jacob@jhpratt.dev>2023-06-20 19:40:25 -0400
commit87ec0738ab6fd62408c3058694c413daeb40630b (patch)
treeed7b78628ef2cfd1da0fc8b814594a10aae21eac /compiler/rustc_expand/src
parentdc76991d2fa6448bfc5333d22f5d27c26b646d49 (diff)
downloadrust-87ec0738ab6fd62408c3058694c413daeb40630b.tar.gz
rust-87ec0738ab6fd62408c3058694c413daeb40630b.zip
`Span::{before, after}` → `Span::{start, end}`
Diffstat (limited to 'compiler/rustc_expand/src')
-rw-r--r--compiler/rustc_expand/src/proc_macro_server.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_expand/src/proc_macro_server.rs b/compiler/rustc_expand/src/proc_macro_server.rs
index 3dd317405dd..9400c501aa5 100644
--- a/compiler/rustc_expand/src/proc_macro_server.rs
+++ b/compiler/rustc_expand/src/proc_macro_server.rs
@@ -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()
     }