fix(hir): register computed methods on inline class construction - #10993
proggeramlug wants to merge 2 commits into
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 8 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughInline anonymous class construction now prepares computed member names before instance creation. This registers methods such as ChangesInline class iterator fix
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~15 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to Inline anonymous classes now register computed methods before construction, restoring iterator behavior for spread and related operations. No merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings
🧪 Generate unit tests (beta)
🛠️ Fix failing CI checks 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Landed on main in merge train 258 (#11078, v0.5.1641), main Carried at head This train was bisect-verified: after an earlier 35-PR assembly hit five gap regressions, the lowering-touching PRs were split into probes, and this set (#11070) came back with all six gap shards clean while the other half reproduced all five. Trains rebase-merge, so commits get new SHAs and GitHub cannot mark this merged. Closed as landed. |
Summary
new (class { ... })()lowering now runs the same computed-name registration prelude as ordinary class expressions before constructing the instance.[Symbol.iterator]()visible to spread and other runtime iterator consumers.newlowering arm.Fixes #10839.
Verification
origin/main(c1569e244a),cargo test -p perry --test issue_5128_user_symbol_iterator class_expression_generator_symbol_iterator_is_iterable -- --exact --nocapturefailed after the named class assertions, withTypeError: value is not iterable.cargo fmt --all -- --check,scripts/check_file_size.sh, andgit diff --checkpassed.Summary by CodeRabbit
Bug Fixes
Tests
Documentation