Skip to content

Commit

Permalink
doc:update comment about stability of RPITIT
Browse files Browse the repository at this point in the history
  • Loading branch information
Cobord committed Mar 14, 2024
1 parent 55b5405 commit 12fac45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tket2/src/passes/commutation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ impl Rewrite for PullForward {
fn invalidation_set(&self) -> Self::InvalidationSet<'_> {
// TODO: This could avoid creating a vec, but it'll be easier to do once
// return position impl trait is available.
// RPITIT requires 1.75 stable in December 2023
// could change Rewrite trait to take that into account if using that version
let mut nodes = vec![self.command.node()];
let next_nodes = self.new_nexts.values().map(|c| c.node());
nodes.extend(next_nodes);
Expand Down

0 comments on commit 12fac45

Please sign in to comment.