Skip to content

Conversation

@hazelwiss
Copy link
Contributor

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.

}

#[test]
fn test_complex_flatten() {
Copy link
Contributor Author

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> {
Copy link
Contributor Author

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>

Copy link
Contributor

@Imberflur Imberflur left a 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.

@hazelwiss hazelwiss merged commit cde730f into main Oct 27, 2025
1 check passed
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.

3 participants