Skip to content

Commit

Permalink
Add match conditions to rich HIR
Browse files Browse the repository at this point in the history
  • Loading branch information
fpottbaecker committed Jan 6, 2024
1 parent 8efa234 commit 7f46941
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/frontend/src/hir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,11 @@ impl ToRichIr for Expression {
pattern.build_rich_ir(builder);
if let Some(condition) = condition {
builder.push(", ", None, EnumSet::empty());
builder.indent();
builder.push_newline();
condition.build_rich_ir(builder);
builder.dedent();
builder.push_newline();
}
builder.push(" ->", None, EnumSet::empty());
builder.indent();
Expand Down

1 comment on commit 7f46941

@jwbot
Copy link
Collaborator

@jwbot jwbot commented on 7f46941 Jan 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compiler

Benchmark suite Current: 7f46941 Previous: a68dbb9 Ratio
Time: Compiler/hello_world 21959092 ns/iter (± 526093) 22131864 ns/iter (± 416337) 0.99
Time: Compiler/fibonacci 175782205 ns/iter (± 484445) 177627245 ns/iter (± 2599838) 0.99
Time: VM Runtime/hello_world 32395 ns/iter (± 3094) 32837 ns/iter (± 2809) 0.99

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.