-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat: Update extension pointers in customConsts #1780
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1780 +/- ##
==========================================
- Coverage 86.69% 86.64% -0.05%
==========================================
Files 186 186
Lines 34035 34145 +110
Branches 30910 31020 +110
==========================================
+ Hits 29506 29586 +80
- Misses 2857 2883 +26
- Partials 1672 1676 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Most of this has no coverage.
I would expect to see Arrays here.
There are no array values yet, I covered all things that implement |
@@ -93,6 +94,12 @@ fn resolve_hugr_extensions() { | |||
// A constant op using the prelude extension. | |||
module.add_constant(Value::extension(ConstUsize::new(42))); | |||
|
|||
// A constant op using lists of non-prelude types. | |||
module.add_constant(Value::extension(ListValue::new( |
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.
can you make this a list of list of float? That way we'll get coverage of resolve_typeargs_extensions
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.
I wish we had coverage of resolve_typearg_extensions, but this is good enough I think.
Thank you!
Closes #1742.
Adds a (default defined)
update_extensions
call toCustomConst
so it can update its internal extensionWeak
pointers after loading a serialized hugr.