aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_db/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_db/src')
-rw-r--r--crates/ra_db/src/input.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_db/src/input.rs b/crates/ra_db/src/input.rs
index 7d9faa43c..a48d05b98 100644
--- a/crates/ra_db/src/input.rs
+++ b/crates/ra_db/src/input.rs
@@ -48,6 +48,9 @@ impl CrateGraph {
48 assert!(prev.is_none()); 48 assert!(prev.is_none());
49 crate_id 49 crate_id
50 } 50 }
51 //FIXME: check that we don't have cycles here.
52 // Just a simple depth first search from `to` should work,
53 // the graph is small.
51 pub fn add_dep(&mut self, from: CrateId, to: CrateId) { 54 pub fn add_dep(&mut self, from: CrateId, to: CrateId) {
52 self.arena.get_mut(&from).unwrap().add_dep(to) 55 self.arena.get_mut(&from).unwrap().add_dep(to)
53 } 56 }