mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Fix the hover dash issues
This commit is contained in:
parent
cae2e859ff
commit
99952f3be2
4 changed files with 10 additions and 9 deletions
|
@ -154,15 +154,15 @@ impl ChangeFixture {
|
|||
assert!(meta.path.starts_with(&source_root_prefix));
|
||||
|
||||
if let Some(krate) = meta.krate {
|
||||
let crate_name = CrateName::normalize_dashes(&krate);
|
||||
let crate_id = crate_graph.add_crate_root(
|
||||
file_id,
|
||||
meta.edition,
|
||||
Some(krate.clone()),
|
||||
Some(crate_name.clone()),
|
||||
meta.cfg,
|
||||
meta.env,
|
||||
Default::default(),
|
||||
);
|
||||
let crate_name = CrateName::normalize_dashes(&krate);
|
||||
let prev = crates.insert(crate_name.clone(), crate_id);
|
||||
assert!(prev.is_none());
|
||||
for dep in meta.deps {
|
||||
|
@ -187,7 +187,7 @@ impl ChangeFixture {
|
|||
crate_graph.add_crate_root(
|
||||
crate_root,
|
||||
Edition::Edition2018,
|
||||
Some("test".to_string()),
|
||||
Some(CrateName::new("test").unwrap()),
|
||||
default_cfg,
|
||||
Env::default(),
|
||||
Default::default(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue