Add config: &CargoConfig parameter to fn load_cargo(…)

This commit is contained in:
Vincent Esche
2021-02-08 11:00:55 +01:00
parent 433ad23988
commit 6d9c13c710
5 changed files with 18 additions and 7 deletions

View File

@@ -26,7 +26,7 @@ fn all_modules(db: &dyn HirDatabase) -> Vec<Module> {
}
pub fn diagnostics(path: &Path, load_output_dirs: bool, with_proc_macro: bool) -> Result<()> {
let (host, _vfs) = load_cargo(path, load_output_dirs, with_proc_macro)?;
let (host, _vfs) = load_cargo(path, &Default::default(), load_output_dirs, with_proc_macro)?;
let db = host.raw_database();
let analysis = host.analysis();