Skip to content

Commit

Permalink
Update crates/oq3_semantics/src/syntax_to_semantics.rs
Browse files Browse the repository at this point in the history
Move a comment from elsewhere to here, where it makes more sense.
  • Loading branch information
jlapeyre authored May 31, 2024
1 parent b5a2f3e commit f519ec0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/oq3_semantics/src/syntax_to_semantics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,7 @@ fn from_expression_list(
}

fn from_qubit_list(qubit_list: Option<synast::QubitList>, context: &mut Context) -> Vec<asg::TExpr> {
// Warning, I think map overlooks None. This can cause a bug in the present case.
// Because None means a coding error upstream. Better to blow up here.
qubit_list.unwrap()
.gate_operands()
Expand Down

0 comments on commit f519ec0

Please sign in to comment.