feat(t27b): x.len() and len(x) as the .len field - #6571
Merged
Merged
Conversation
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #6454
Refs #6063
What
.lenfield access, exactly as t27c's Zig backend prints them (W570):a.b.len();lenkept with its receiver;len(x), when no fnlenis declared.lenis still called.cli/t27b/src/lower/lencall.rs, with one hook inlower.rs.Owner exception
Allowed by the owner 2026-10-05; debt to be replaced via #6198.
The local only-t27 hook (#6511) read an uncommitted line in
tools/policy/foreign-exceptions.txtthat names this PR's paths. That line is not in this PR, so the exception ends with the PR.Files
cli/t27b/src/lower.rs(hook, 4 lines)cli/t27b/src/lower/lencall.rscli/t27b/tests/lencall.rsdocs/now/2026-10-05-t27b-lencall.mdTests
cargo test -p t27b: all green.tests/lencall.rs: each source was run undert27c test-reportfirst. It gives 3 pass and 1 fail there, and the same here.Corpus (
t27b corpus specs --blockers --reference <t27c> --reference-cache, jobs 8)No file loses its pass. Two files newly pass:
specs/math/gf_competitive.t27andspecs/tri/sort/selection_sort.t27.🤖 Generated with Claude Code