mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Treat extern blocks as item containers
This commit is contained in:
parent
b7afb6fc6c
commit
b365b6119c
26 changed files with 216 additions and 164 deletions
|
@ -468,7 +468,7 @@ mod tests {
|
|||
use base_db::{fixture::WithFixture, SourceDatabase, Upcast};
|
||||
use expect_test::{expect, Expect};
|
||||
|
||||
use crate::{test_db::TestDB, AssocContainerId, Lookup};
|
||||
use crate::{test_db::TestDB, ItemContainerId, Lookup};
|
||||
|
||||
use super::*;
|
||||
|
||||
|
@ -563,7 +563,7 @@ mod tests {
|
|||
};
|
||||
|
||||
match container {
|
||||
AssocContainerId::TraitId(it) => Some(ItemInNs::Types(it.into())),
|
||||
ItemContainerId::TraitId(it) => Some(ItemInNs::Types(it.into())),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue