@@ -14,7 +14,7 @@ use ra_ap_ide_db::FxHashMap;
1414use ra_ap_intern:: Symbol ;
1515use ra_ap_load_cargo:: { LoadCargoConfig , ProcMacroServerChoice } ;
1616use ra_ap_paths:: { AbsPath , AbsPathBuf , Utf8PathBuf } ;
17- use ra_ap_project_model:: { CargoConfig , CargoFeatures , CfgOverrides , RustLibSource , Sysroot } ;
17+ use ra_ap_project_model:: { CargoConfig , CargoFeatures , CfgOverrides , RustLibSource , Sysroot , TargetDirectoryConfig } ;
1818use rust_extractor_macros:: extractor_cli_config;
1919use serde:: { Deserialize , Serialize } ;
2020use std:: collections:: HashSet ;
@@ -171,12 +171,12 @@ impl Config {
171171 . iter ( )
172172 . map ( |p| join_path_buf ( dir, p) )
173173 . collect ( ) ,
174- target_dir : Utf8PathBuf :: from_path_buf (
174+ target_dir_config : Utf8PathBuf :: from_path_buf (
175175 self . cargo_target_dir
176176 . clone ( )
177177 . unwrap_or_else ( || self . scratch_dir . join ( "target" ) ) ,
178178 )
179- . ok ( ) ,
179+ . map_or ( TargetDirectoryConfig :: None , TargetDirectoryConfig :: Directory ) ,
180180 features : self . cargo_features ( ) ,
181181 target : self . cargo_target . clone ( ) ,
182182 cfg_overrides : to_cfg_overrides ( & self . cargo_cfg_overrides ) ,
@@ -192,6 +192,8 @@ impl Config {
192192 load_out_dirs_from_check : true ,
193193 with_proc_macro_server : self . proc_macro_server_choice ( dir) ,
194194 prefill_caches : false ,
195+ num_worker_threads : 0 ,
196+ proc_macro_processes : 0 ,
195197 } ,
196198 )
197199 }
0 commit comments