Skip to content

Commit f0938a3

Browse files
committed
Link edges after adding a node too
1 parent ddde5c6 commit f0938a3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • compiler/rustc_data_structures/src/graph/linked_graph

compiler/rustc_data_structures/src/graph/linked_graph/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ impl<I: Idx, N, E> LinkedGraph<I, N, E> {
129129

130130
pub fn add_node(&mut self, idx: I, data: N) {
131131
let old = self.nodes.insert(idx, Node::new(data));
132+
self.link_edges();
132133
debug_assert!(old.is_none());
133134
}
134135

0 commit comments

Comments
 (0)