Skip to content

Toolchain update and misc improvements#72

Merged
Imberflur merged 8 commits into
mainfrom
toolchain-update-and-misc-improvements
Jun 12, 2026
Merged

Toolchain update and misc improvements#72
Imberflur merged 8 commits into
mainfrom
toolchain-update-and-misc-improvements

Conversation

@Imberflur

Copy link
Copy Markdown
Contributor

This bumps the nightly version to keep it in sync with the dreamthorn repo and resolves new lints. This also contains additional improvements that I have added while working on things:

  • Add DefaultMaker to enforce type ID assignment to instantiated default values
  • Minor documentation improvements
  • Fix validation object trait check which previously skipped all types when doing validation
  • Fix infinite instantiation loop involving traits
  • Fix validation of Option by writing out explicit types for generic enums

…values

Other changes:
- Fix a bug in type validation causing all types to be skipped since the
  default object_trait_dependency is the any trait which is not
  explicitly listed in the traits list for each type.
- Fix a bug where transparent types could have an infinite loop in
  `instantiate` if they are wrapping a trait type and implement the
  trait themselves.
- Fix a bug in the logic that determines whether an explicit type needs
  to be written out for a binding. This was skipping the explicit type
  for `Option`, but there are cases where the value does not hint at the
  type (i.e. `Option::None` contains no indication of what the generic
  type parameter should be).
- Document that `instantiate` will always produce a value with a type ID
  that is for a `TypeKind::instanciable` type.
Comment thread bauble/src/value/mod.rs
@Imberflur Imberflur merged commit 0cf090b into main Jun 12, 2026
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