@@ -9,9 +9,7 @@ pub mod msg;
9
9
mod process;
10
10
11
11
use base_db:: Env ;
12
- use indexmap:: IndexSet ;
13
12
use paths:: { AbsPath , AbsPathBuf } ;
14
- use rustc_hash:: FxHashMap ;
15
13
use span:: Span ;
16
14
use std:: { fmt, io, sync:: Arc } ;
17
15
use tt:: SmolStr ;
@@ -21,7 +19,8 @@ use serde::{Deserialize, Serialize};
21
19
use crate :: {
22
20
msg:: {
23
21
deserialize_span_data_index_map, flat:: serialize_span_data_index_map, ExpandMacro ,
24
- ExpnGlobals , FlatTree , PanicMessage , HAS_GLOBAL_SPANS , RUST_ANALYZER_SPAN_SUPPORT ,
22
+ ExpnGlobals , FlatTree , PanicMessage , SpanDataIndexMap , HAS_GLOBAL_SPANS ,
23
+ RUST_ANALYZER_SPAN_SUPPORT ,
25
24
} ,
26
25
process:: ProcMacroProcessSrv ,
27
26
} ;
@@ -101,7 +100,8 @@ impl ProcMacroServer {
101
100
/// Spawns an external process as the proc macro server and returns a client connected to it.
102
101
pub fn spawn (
103
102
process_path : & AbsPath ,
104
- env : & FxHashMap < String , String > ,
103
+ env : impl IntoIterator < Item = ( impl AsRef < std:: ffi:: OsStr > , impl AsRef < std:: ffi:: OsStr > ) >
104
+ + Clone ,
105
105
) -> io:: Result < ProcMacroServer > {
106
106
let process = ProcMacroProcessSrv :: run ( process_path, env) ?;
107
107
Ok ( ProcMacroServer { process : Arc :: new ( process) , path : process_path. to_owned ( ) } )
@@ -151,7 +151,7 @@ impl ProcMacro {
151
151
let version = self . process . version ( ) ;
152
152
let current_dir = env. get ( "CARGO_MANIFEST_DIR" ) ;
153
153
154
- let mut span_data_table = IndexSet :: default ( ) ;
154
+ let mut span_data_table = SpanDataIndexMap :: default ( ) ;
155
155
let def_site = span_data_table. insert_full ( def_site) . 0 ;
156
156
let call_site = span_data_table. insert_full ( call_site) . 0 ;
157
157
let mixed_site = span_data_table. insert_full ( mixed_site) . 0 ;
0 commit comments