mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 12:13:43 +00:00
Merge #7092
7092: Simplify r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
efc76e2c88
@ -432,6 +432,7 @@ fn item_import_kind(item: ItemInNs) -> Option<ImportKind> {
|
|||||||
mod tests {
|
mod tests {
|
||||||
use base_db::{fixture::WithFixture, SourceDatabase, Upcast};
|
use base_db::{fixture::WithFixture, SourceDatabase, Upcast};
|
||||||
use expect_test::{expect, Expect};
|
use expect_test::{expect, Expect};
|
||||||
|
use stdx::format_to;
|
||||||
|
|
||||||
use crate::{data::FunctionData, test_db::TestDB, AssocContainerId, Lookup};
|
use crate::{data::FunctionData, test_db::TestDB, AssocContainerId, Lookup};
|
||||||
|
|
||||||
@ -467,9 +468,10 @@ mod tests {
|
|||||||
if let ItemInNs::Types(ModuleDefId::FunctionId(function_id))
|
if let ItemInNs::Types(ModuleDefId::FunctionId(function_id))
|
||||||
| ItemInNs::Values(ModuleDefId::FunctionId(function_id)) = item
|
| ItemInNs::Values(ModuleDefId::FunctionId(function_id)) = item
|
||||||
{
|
{
|
||||||
full_path += &format!(
|
format_to!(
|
||||||
|
full_path,
|
||||||
"::{}",
|
"::{}",
|
||||||
FunctionData::fn_data_query(&db, function_id).name
|
FunctionData::fn_data_query(&db, function_id).name,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
full_path
|
full_path
|
||||||
|
Loading…
Reference in New Issue
Block a user