Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/proc-macro-srv/src/dylib.rs')
-rw-r--r--crates/proc-macro-srv/src/dylib.rs18
1 files changed, 13 insertions, 5 deletions
diff --git a/crates/proc-macro-srv/src/dylib.rs b/crates/proc-macro-srv/src/dylib.rs
index 9a65538675..96daa2c462 100644
--- a/crates/proc-macro-srv/src/dylib.rs
+++ b/crates/proc-macro-srv/src/dylib.rs
@@ -12,7 +12,7 @@ use object::Object;
use paths::{Utf8Path, Utf8PathBuf};
use crate::{
- PanicMessage, ProcMacroClientHandle, ProcMacroKind, ProcMacroSrvSpan,
+ PanicMessage, ProcMacroClientHandle, ProcMacroKind, ProcMacroSrvSpan, TrackedEnv,
dylib::proc_macros::ProcMacros, token_stream::TokenStream,
};
@@ -45,14 +45,22 @@ impl Expander {
def_site: S,
call_site: S,
mixed_site: S,
- callback: Option<ProcMacroClientHandle<'_>>,
+ tracked_env: &'a mut TrackedEnv,
+ callback: Option<ProcMacroClientHandle<'a>>,
) -> Result<TokenStream<S>, PanicMessage>
where
<S::Server<'a> as bridge::server::Server>::TokenStream: Default,
{
- self.inner
- .proc_macros
- .expand(macro_name, macro_body, attribute, def_site, call_site, mixed_site, callback)
+ self.inner.proc_macros.expand(
+ macro_name,
+ macro_body,
+ attribute,
+ def_site,
+ call_site,
+ mixed_site,
+ tracked_env,
+ callback,
+ )
}
pub(crate) fn list_macros(&self) -> impl Iterator<Item = (&str, ProcMacroKind)> {