Skip to content

Migrate deprecated MoonBit syntax and normalize manifests - #15

Merged
Milky2018 merged 2 commits into
mainfrom
milky/clear-moonbit-warnings
Jul 22, 2026
Merged

Migrate deprecated MoonBit syntax and normalize manifests#15
Milky2018 merged 2 commits into
mainfrom
milky/clear-moonbit-warnings

Conversation

@Milky2018

Copy link
Copy Markdown
Collaborator

Summary

  • replace deprecated type-parameter method promotion with explicit defining-trait dispatch
  • migrate executable package declarations to pkgtype(kind: "executable")
  • refresh formatter output and generated package interfaces
  • record the pre-existing deferred Commands::spawn regression as ISS-474

Why

The updated MoonBit toolchain reports warning 83 for legacy method-call syntax on type-parameter receivers. The formatter and interface generator also normalize executable manifests and generated interfaces for the current toolchain.

No runtime behavior or intentional public API change is expected.

Validation

  • MOONBIT_NEW_NATIVE=1 moon -C mgstudio-engine check --target native --deny-warn
  • MOONBIT_NEW_NATIVE=1 moon -C mgstudio-engine build --target native --release --deny-warn examples/stress_tests/many_foxes
  • moon fmt
  • moon info

Aggregate tests were intentionally not rerun. The per-package focused-test criterion remains open, and the unrelated Commands::spawn abort is tracked in ISS-474. git diff --check reports only three generated pkg.generated.mbti EOF blank lines from moon info.

@Milky2018
Milky2018 marked this pull request as ready for review July 22, 2026 05:30
@Milky2018
Milky2018 merged commit d6c9cdd into main Jul 22, 2026
2 of 4 checks passed
@Milky2018
Milky2018 deleted the milky/clear-moonbit-warnings branch July 22, 2026 05:31
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.

1 participant