aboutsummaryrefslogtreecommitdiff
path: root/crates/hir
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2021-03-09 17:27:16 +0000
committerJonas Schievink <[email protected]>2021-03-09 17:27:23 +0000
commita430549aa6cb78e3a6c9258305b348743c4d7449 (patch)
tree0948c2f984b3f5ccca17f2307e730090d0a6b477 /crates/hir
parent12f6bdcfd9fe1393887b3be0d0329fcf11492e75 (diff)
Stop using `ContainerId` in `AssocContainerId`
Diffstat (limited to 'crates/hir')
-rw-r--r--crates/hir/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir/src/lib.rs b/crates/hir/src/lib.rs
index 638398e29..c6d424c48 100644
--- a/crates/hir/src/lib.rs
+++ b/crates/hir/src/lib.rs
@@ -1157,7 +1157,7 @@ where
1157{ 1157{
1158 match id.lookup(db.upcast()).container { 1158 match id.lookup(db.upcast()).container {
1159 AssocContainerId::TraitId(_) | AssocContainerId::ImplId(_) => Some(ctor(DEF::from(id))), 1159 AssocContainerId::TraitId(_) | AssocContainerId::ImplId(_) => Some(ctor(DEF::from(id))),
1160 AssocContainerId::ContainerId(_) => None, 1160 AssocContainerId::ModuleId(_) => None,
1161 } 1161 }
1162} 1162}
1163 1163
@@ -1185,7 +1185,7 @@ impl AssocItem {
1185 match container { 1185 match container {
1186 AssocContainerId::TraitId(id) => AssocItemContainer::Trait(id.into()), 1186 AssocContainerId::TraitId(id) => AssocItemContainer::Trait(id.into()),
1187 AssocContainerId::ImplId(id) => AssocItemContainer::Impl(id.into()), 1187 AssocContainerId::ImplId(id) => AssocItemContainer::Impl(id.into()),
1188 AssocContainerId::ContainerId(_) => panic!("invalid AssocItem"), 1188 AssocContainerId::ModuleId(_) => panic!("invalid AssocItem"),
1189 } 1189 }
1190 } 1190 }
1191 1191