-
Notifications
You must be signed in to change notification settings - Fork 13
feat!: Remove RootTagged from the hugr view trait hierarchy
#2122
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release-rs-v0.16.0 #2122 +/- ##
======================================================
- Coverage 83.49% 83.44% -0.05%
======================================================
Files 219 219
Lines 42188 42149 -39
Branches 38290 38251 -39
======================================================
- Hits 35225 35172 -53
- Misses 5150 5163 +13
- Partials 1813 1814 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
This PR contains breaking changes to the public Rust API. cargo-semver-checks summary |
doug-q
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
hugr-core/src/hugr/internal.rs
Outdated
| index.into() | ||
| } | ||
|
|
||
| #[inline] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This got filtered in from the big trait rework changes. I removed it from this patch
hugr-core/src/hugr/internal.rs
Outdated
| fn replace_op(&mut self, node: Node, op: impl Into<OpType>) -> Result<OpType, HugrError> { | ||
| fn replace_op(&mut self, node: Node, op: impl Into<OpType>) -> OpType { | ||
| panic_invalid_node(self, node); | ||
| // We know RootHandle=Node here so no need to check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete this line?
hugr-core/src/hugr/views/sibling.rs
Outdated
| ) -> Result<crate::ops::OpType, crate::hugr::HugrError> { | ||
| ) -> crate::ops::OpType { | ||
| let op = op.into(); | ||
| // Note: This wrapper will be removed in a subsequent PR, so we just panic here for now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is "This wrapper" SiblingMut?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep!
hugr-core/Cargo.toml
Outdated
| "display", | ||
| "error", | ||
| "from", | ||
| "into", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not clear what this is for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here. Removed from this patch
Closes #2077 BREAKING CHANGE: Removed `RootTagged` trait. Now `RootChecked` is a non-hugrview wrapper only used to verify inputs where appropriate.
Closes #2077
BREAKING CHANGE: Removed
RootTaggedtrait. NowRootCheckedis a non-hugrview wrapper only used to verify inputs where appropriate.