about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonas Schievink <jonasschievink@gmail.com>2021-09-27 19:42:39 +0200
committerJonas Schievink <jonasschievink@gmail.com>2021-09-27 19:42:39 +0200
commit9641bc7369302f45a8c4ada0ec8e95391e39ba6d (patch)
tree8dffab9a40a1d851fcb9401b2440dad84a203b8a
parent5d4bb05ffff2ac5e4b5c04b222794f4dcf3905ce (diff)
downloadrust-9641bc7369302f45a8c4ada0ec8e95391e39ba6d.tar.gz
rust-9641bc7369302f45a8c4ada0ec8e95391e39ba6d.zip
Implement `save_span` / `recover_proc_macro_span`
-rw-r--r--crates/proc_macro_srv/src/abis/abi_1_56/rustc_server.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/proc_macro_srv/src/abis/abi_1_56/rustc_server.rs b/crates/proc_macro_srv/src/abis/abi_1_56/rustc_server.rs
index b0c2681f713..082cdd0a952 100644
--- a/crates/proc_macro_srv/src/abis/abi_1_56/rustc_server.rs
+++ b/crates/proc_macro_srv/src/abis/abi_1_56/rustc_server.rs
@@ -653,10 +653,12 @@ impl server::Span for Rustc {
         unimplemented!()
     }
     fn save_span(&mut self, _span: Self::Span) -> usize {
-        unimplemented!()
+        // FIXME stub
+        0
     }
     fn recover_proc_macro_span(&mut self, _id: usize) -> Self::Span {
-        unimplemented!()
+        // FIXME stub
+        tt::TokenId::unspecified()
     }
     /// Recent feature, not yet in the proc_macro
     ///