Add extern source

This commit is contained in:
Edwin Cheng 2020-03-11 11:04:02 +08:00
parent 5a292309c5
commit 6ea7c31915
8 changed files with 49 additions and 11 deletions

View file

@ -102,6 +102,7 @@ impl MockAnalysis {
None,
cfg_options,
Env::default(),
Default::default(),
));
} else if path.ends_with("/lib.rs") {
let crate_name = path.parent().unwrap().file_name().unwrap();
@ -111,6 +112,7 @@ impl MockAnalysis {
Some(crate_name.to_owned()),
cfg_options,
Env::default(),
Default::default(),
);
if let Some(root_crate) = root_crate {
crate_graph