From 9641bc7369302f45a8c4ada0ec8e95391e39ba6d Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Mon, 27 Sep 2021 19:42:39 +0200 Subject: [PATCH] Implement `save_span` / `recover_proc_macro_span` --- crates/proc_macro_srv/src/abis/abi_1_56/rustc_server.rs | 6 ++++-- 1 file 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 @@ fn source_file(&mut self, _span: Self::Span) -> Self::SourceFile { 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 ///