Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrites work on any HugrMut #282

Merged
merged 4 commits into from
Sep 4, 2023
Merged

Rewrites work on any HugrMut #282

merged 4 commits into from
Sep 4, 2023

Conversation

acl-cqc
Copy link
Contributor

@acl-cqc acl-cqc commented Jul 18, 2023

Rewrite::verify takes &impl HugrView (not &Hugr); Rewrite::apply takes &mut impl HugrMut (not &mut Hugr).

TransactionalRewrite backs up the portion inside the HugrMut and then restores - this feels a little awkward but may be ok, still not tested though.

@acl-cqc acl-cqc changed the base branch from main to new/buildable_hugrmut July 19, 2023 08:05
@acl-cqc acl-cqc force-pushed the new/buildable_hugrmut branch 2 times, most recently from 19037c7 to 5e64b0a Compare July 24, 2023 14:02
@acl-cqc acl-cqc requested review from aborgna-q and ss2165 July 25, 2023 14:48
@acl-cqc acl-cqc changed the base branch from new/buildable_hugrmut to refactor/outline_cfg_insert_hugr July 26, 2023 16:46
Base automatically changed from refactor/outline_cfg_insert_hugr to main July 27, 2023 14:27
@acl-cqc acl-cqc removed the request for review from ss2165 August 2, 2023 09:43
@acl-cqc acl-cqc changed the title [3 of 4]Rewrites work on any HugrMut [RFC]Rewrites work on any HugrMut Aug 2, 2023
@acl-cqc
Copy link
Contributor Author

acl-cqc commented Aug 22, 2023

@aborgna-q ping - this is a bit out-of-date but I'm wondering if I should update it or drop it?

Copy link
Collaborator

@aborgna-q aborgna-q left a comment

Choose a reason for hiding this comment

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

It needs some merging with #441, but LGTM.

@acl-cqc acl-cqc changed the title [RFC]Rewrites work on any HugrMut Rewrites work on any HugrMut Sep 4, 2023
@acl-cqc acl-cqc added this pull request to the merge queue Sep 4, 2023
@acl-cqc
Copy link
Contributor Author

acl-cqc commented Sep 4, 2023

It needs some merging with #441, but LGTM.

The merge was very straightforward: remove all changes to HugrMut itself from this PR :-) :-). Thanks!

@acl-cqc acl-cqc removed this pull request from the merge queue due to a manual request Sep 4, 2023
@acl-cqc acl-cqc added this pull request to the merge queue Sep 4, 2023
Merged via the queue into main with commit cc3bd6a Sep 4, 2023
6 checks passed
@acl-cqc acl-cqc deleted the new/rewrite_hugrmut branch September 4, 2023 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants