mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Add extern source
This commit is contained in:
parent
5a292309c5
commit
6ea7c31915
8 changed files with 49 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue