Skip to content

Comments

Fix MoonBit deprecations and update Iterator APIs#11

Merged
peter-jerry-ye merged 4 commits intomasterfrom
ai-fix-1767689032852
Jan 6, 2026
Merged

Fix MoonBit deprecations and update Iterator APIs#11
peter-jerry-ye merged 4 commits intomasterfrom
ai-fix-1767689032852

Conversation

@peter-jerry-ye
Copy link
Contributor

Summary

  • Resolved deprecation warnings across the IR package by updating APIs and refactoring affected code paths
  • Migrated Iter/Iter2 usages to Iterator/Iterator2, including new iterator2 wrappers where required
  • Added target and _build to .gitignore to prepare for migration tooling

Why

  • The task is to eliminate as many deprecated warnings/errors as possible, including the breaking change from Iter/Iter2 to Iterator/Iterator2
  • The .gitignore update is required to support future build and migration workflows

Notable Details

  • Introduced new iterator2 functions that return Iterator2, while keeping legacy iter2 as a thin wrapper for compatibility
  • Updated iterator construction to use the new Iterator::new/Iterator2::new callback style
  • Touched multiple IR modules to align types, signatures, and iterator usage with the new APIs

@peter-jerry-ye peter-jerry-ye merged commit 2757829 into master Jan 6, 2026
4 checks passed
@peter-jerry-ye peter-jerry-ye deleted the ai-fix-1767689032852 branch January 6, 2026 09:17
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