aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src/src.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-12-15 17:22:03 +0000
committerGitHub <[email protected]>2020-12-15 17:22:03 +0000
commiteb9ba457b0126bd45c45ef751e92ccfdc5fdc206 (patch)
tree5af185ffaa39f285ce85aaccb2eb6bb5f532e26c /crates/hir_def/src/src.rs
parentbd4c352831662762ee7a66da77ec9adf623b0a0a (diff)
parent2c67a4abe47ead6a00ce1b33ccc3d3bfcaaf0983 (diff)
Merge #6879
6879: Change HasChildSource::ChildId assoc item to generic param r=matklad a=Veykril Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/hir_def/src/src.rs')
-rw-r--r--crates/hir_def/src/src.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/hir_def/src/src.rs b/crates/hir_def/src/src.rs
index 7a79b0314..f67244b46 100644
--- a/crates/hir_def/src/src.rs
+++ b/crates/hir_def/src/src.rs
@@ -36,8 +36,7 @@ impl<N: ItemTreeNode> HasSource for ItemLoc<N> {
36 } 36 }
37} 37}
38 38
39pub trait HasChildSource { 39pub trait HasChildSource<ChildId> {
40 type ChildId;
41 type Value; 40 type Value;
42 fn child_source(&self, db: &dyn DefDatabase) -> InFile<ArenaMap<Self::ChildId, Self::Value>>; 41 fn child_source(&self, db: &dyn DefDatabase) -> InFile<ArenaMap<ChildId, Self::Value>>;
43} 42}