Setup Env in world

This commit is contained in:
Edwin Cheng
2020-03-10 22:00:58 +08:00
parent 22f064cca7
commit e00a1e0b79
3 changed files with 52 additions and 8 deletions

View File

@@ -52,7 +52,10 @@ pub(crate) fn load_cargo(
opts
};
let crate_graph = ws.to_crate_graph(&default_cfg_options, &mut |path: &Path| {
// FIXME: outdirs?
let outdirs = FxHashMap::default();
let crate_graph = ws.to_crate_graph(&default_cfg_options, &outdirs, &mut |path: &Path| {
let vfs_file = vfs.load(path);
log::debug!("vfs file {:?} -> {:?}", path, vfs_file);
vfs_file.map(vfs_file_to_id)