Skip to content

Commit

Permalink
[red-knot] Fix tests in release builds (#12022)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser authored Jun 25, 2024
1 parent 68a8978 commit 692309e
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions crates/red_knot/src/semantic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,17 +271,16 @@ impl SourceOrderVisitor<'_> for SemanticIndexer {
let node_key = NodeKey::from_node(expr.into());
let expression_id = self.expressions_by_id.push(node_key);

debug_assert_eq!(
expression_id,
self.flow_graph_builder
.record_expr(self.current_flow_node())
);
let flow_expression_id = self
.flow_graph_builder
.record_expr(self.current_flow_node());
debug_assert_eq!(expression_id, flow_expression_id);

debug_assert_eq!(
expression_id,
self.symbol_table_builder
.record_expression(self.cur_scope())
);
let symbol_expression_id = self
.symbol_table_builder
.record_expression(self.cur_scope());

debug_assert_eq!(expression_id, symbol_expression_id);

self.expressions.insert(node_key, expression_id);

Expand Down

0 comments on commit 692309e

Please sign in to comment.