-
Notifications
You must be signed in to change notification settings - Fork 0
Fix ref type #62
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
Fix ref type #62
Conversation
…reference value to its underlying type.
| } | ||
|
|
||
| #[test] | ||
| fn test_complex_flatten() { |
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 test did not work with my changes, however, I realized it was relying on the copy feature. Which is a broken feature and is underway to be removed. This does not affect the main codebase and it seemed safe to remove this test.
| /// | ||
| /// Constructs a builtin type. A builtin type is a type which is not constructed by Bauble during parsing and | ||
| /// might warrant additional rules. | ||
| fn builtin(#[expect(unused)] registry: &mut types::TypeRegistry) -> Option<TypeId> { |
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 needed to add builtin types to avoid construct_type for Ref<T>
Imberflur
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.
Here are my notes so far! I did not finish the review entirely but I believe these will be useful to have earlier.
This PR fixes the issue where explicitly typed references did not delay registering properly. It also adds a usable
Ref<T>type in Bauble represented in Rust for use in tests.