-
Notifications
You must be signed in to change notification settings - Fork 13
feat!: Validate any HugrView, make errors generic #2155
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 @@
## main #2155 +/- ##
==========================================
- Coverage 82.10% 82.09% -0.01%
==========================================
Files 227 227
Lines 39805 39802 -3
Branches 35904 35901 -3
==========================================
- Hits 32682 32677 -5
- Misses 5301 5303 +2
Partials 1822 1822
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 |
8806a2e to
163fe0a
Compare
163fe0a to
04d804a
Compare
|
The changes here are mostly just noise due to adding the extra node type param to the errors. There is no logic change. |
04d804a to
f3320e3
Compare
Removes the dependency on
base_hugrwhen validating views.Now the validation code runs directly on any given
HugrView.To make this work I had to add
<N: HugrNode>parameters to multiple error types.This makes sense, as now validating a non-
Nodehugr will return errors with the correct indices.BREAKING CHANGE: Added node parameters to multiple error types, including the one returned by
HugrView::validate.