mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Expose version string of crates fom HIR
This commit is contained in:
parent
b9fa37f5b4
commit
52f5af7165
8 changed files with 111 additions and 1 deletions
|
@ -468,6 +468,7 @@ fn project_json_to_crate_graph(
|
|||
file_id,
|
||||
krate.edition,
|
||||
krate.display_name.clone(),
|
||||
krate.version.clone(),
|
||||
cfg_options.clone(),
|
||||
cfg_options,
|
||||
env,
|
||||
|
@ -675,6 +676,7 @@ fn detached_files_to_crate_graph(
|
|||
file_id,
|
||||
Edition::CURRENT,
|
||||
display_name,
|
||||
None,
|
||||
cfg_options.clone(),
|
||||
cfg_options.clone(),
|
||||
Env::default(),
|
||||
|
@ -824,6 +826,7 @@ fn add_target_crate_root(
|
|||
file_id,
|
||||
edition,
|
||||
Some(display_name),
|
||||
Some(pkg.version.to_string()),
|
||||
cfg_options,
|
||||
potential_cfg_options,
|
||||
env,
|
||||
|
@ -866,6 +869,7 @@ fn sysroot_to_crate_graph(
|
|||
file_id,
|
||||
Edition::CURRENT,
|
||||
Some(display_name),
|
||||
None,
|
||||
cfg_options.clone(),
|
||||
cfg_options.clone(),
|
||||
env,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue