Skip to content

Fix ref type - #62

Merged
hazelwiss merged 12 commits into
mainfrom
fix_ref_type
Oct 27, 2025
Merged

Fix ref type#62
hazelwiss merged 12 commits into
mainfrom
fix_ref_type

Conversation

@hazelwiss

Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread bauble/tests/lang.rs Outdated
Comment thread bauble/src/value/mod.rs
Comment thread bauble/src/traits.rs
///
/// 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
Copy Markdown
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>

@Imberflur Imberflur left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread bauble/tests/lang.rs Outdated
Comment thread bauble/tests/lang.rs Outdated
Comment thread bauble/tests/lang.rs Outdated
Comment thread bauble/src/builtin.rs
Comment thread bauble/tests/lang.rs Outdated
Comment thread bauble/src/traits.rs Outdated
Comment thread bauble/src/value/mod.rs
Comment thread bauble/src/value/mod.rs Outdated
Comment thread bauble/src/value/mod.rs
@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.

2 participants