mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Make tests pass
This commit is contained in:
parent
4322cf7f5b
commit
8fe73a2240
4 changed files with 7 additions and 4 deletions
|
@ -73,10 +73,12 @@ impl ModDir {
|
|||
candidate_files.push(self.dir_path.join_attr(attr_path, self.root_non_dir_owner))
|
||||
}
|
||||
None if file_id.is_include_macro(db.upcast()) => {
|
||||
let name = name.unescaped();
|
||||
candidate_files.push(format!("{}.rs", name));
|
||||
candidate_files.push(format!("{}/mod.rs", name));
|
||||
}
|
||||
None => {
|
||||
let name = name.unescaped();
|
||||
candidate_files.push(format!("{}{}.rs", self.dir_path.0, name));
|
||||
candidate_files.push(format!("{}{}/mod.rs", self.dir_path.0, name));
|
||||
}
|
||||
|
|
|
@ -132,9 +132,9 @@ pub struct Bar;
|
|||
expect![[r#"
|
||||
crate
|
||||
Bar: t v
|
||||
async: t
|
||||
r#async: t
|
||||
|
||||
crate::async
|
||||
crate::r#async
|
||||
Bar: t v
|
||||
"#]],
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue