@@ -26,9 +26,10 @@ extern crate ra_ap_rustc_lexer as rustc_lexer;
2626#[ cfg( feature = "in-rust-tree" ) ]
2727extern crate rustc_lexer;
2828
29+ mod bridge;
2930mod dylib;
3031mod server_impl;
31- mod tt ;
32+ mod token_stream ;
3233
3334use std:: {
3435 collections:: { HashMap , hash_map:: Entry } ,
@@ -80,12 +81,12 @@ impl ProcMacroSrv<'_> {
8081 env : & [ ( String , String ) ] ,
8182 current_dir : Option < impl AsRef < Path > > ,
8283 macro_name : & str ,
83- macro_body : tt :: TokenStream < S > ,
84- attribute : Option < tt :: TokenStream < S > > ,
84+ macro_body : token_stream :: TokenStream < S > ,
85+ attribute : Option < token_stream :: TokenStream < S > > ,
8586 def_site : S ,
8687 call_site : S ,
8788 mixed_site : S ,
88- ) -> Result < tt :: TokenStream < S > , PanicMessage > {
89+ ) -> Result < token_stream :: TokenStream < S > , PanicMessage > {
8990 let snapped_env = self . env ;
9091 let expander = self . expander ( lib. as_ref ( ) ) . map_err ( |err| PanicMessage {
9192 message : Some ( format ! ( "failed to load macro: {err}" ) ) ,
@@ -149,7 +150,7 @@ impl ProcMacroSrv<'_> {
149150}
150151
151152pub trait ProcMacroSrvSpan : Copy + Send + Sync {
152- type Server : proc_macro:: bridge:: server:: Server < TokenStream = crate :: tt :: TokenStream < Self > > ;
153+ type Server : proc_macro:: bridge:: server:: Server < TokenStream = crate :: token_stream :: TokenStream < Self > > ;
153154 fn make_server ( call_site : Self , def_site : Self , mixed_site : Self ) -> Self :: Server ;
154155}
155156
0 commit comments