Repository navigation
Merged
Conversation
added 8 commits
October 21, 2026 21:51
The ICE no longer reproduces after the D103 tail conversion and D140/D141 landed; the fixture pins the instance (`impl[T] Iter[&T] for Count[T]`, `mut fn next():`) and closes the issue.
The by-use check ran exactly twice, and a demand that exists only once another binding is decided (`files.push(p)` with `p` an element of a decided `site_paths`) was never heard. The program is now checked until no demand changes a binding's type, and the decisions accumulate across rounds: a round hears demands only of the bindings still undecided (the demand is recorded on the unknown-method path), so a decided binding keeps its decision when a later round does not mention it; eight rounds oscillated without that. tools/sweep_some_at_option_demand.w drops the hand-typed `List.new()` it wrote around the gap.
… binding from a place observes it (#2541) Eric ruled #2541 observe and the `let i = self.idx` ceremony report fixed by D44's rule, as one rule: a binding from a place of a plain-bits type (integers, floats, bool, pointers, plain structs of those) takes the value; any other binding from a place observes it. `match self.current: Some(c) => c.push(9)` now observes the List in place (MIR aliases the binding to the payload's place; Sema marks it view-bound with the subject's borrow), a mutating call through it writes the field when the subject's root is mutable and stays refused when it is not, and assigning the field while the binding is live is refused like any other conflict with a live view. `let i = self.idx` snapshots the isize, so `self.idx += 1` after it is fine; the annotation #1531 made people write is now a census pattern (plain-bits-field-copy-annotation) and tools/sweep_plain_bits_field_copies.w removes it. The sweep over src/, build/ and tools/ waits for a seed with D144 (the pinned seed refuses `self.idx += 1` after the unannotated let), as D103's seed-blocked sites did; 436 such annotations stand there today. Spec words in §3.8; decision record D144.
…ved redundant are removed (D144 sweep) tools/sweep_plain_bits_field_copies.w over the std modules and the example roots the release compiler builds: 8 annotations. src/, build/ and tools/ wait for a seed with D144 (436 sites), as D103's seed-blocked sites did.
The census pattern plain-bits-field-copy-annotation counts the `let i: T = self.f` annotations D144 makes redundant; src/, build/ and tools/ keep theirs until a seed with D144 is pinned (the pinned seed refuses the unannotated let before a mutation), so the counts are granted at their current ceilings and fall to zero at that seed's sweep.
…y value §9.7 lists a parameter with the temporaries and `move` places as owned: a `match g` on `g: G[str]` moves its payload out (da_generic_enum_nested_ generic_payload). The observe rule applies to places: a local, a field, a global, a `self` that borrows the caller's place.
err_1531_copy_field_let_is_view.w pinned the view a plain-bits field let bound; under D144 that let takes the value, so the fixture becomes the positive behav_d144_plain_bits_let_snapshots.w (a test encoding behavior a later ruling changed gives way, D139). behav_1531_copy_field_view_and_ copy.w still passes: its annotated copy and its joins read the same.
`let pair = channel(); let (tx, rx) = pair; producer(move tx)` (three fixtures) destructures a local holding resources and moves a binding on; observing the local would refuse that until `move pair` is written. The pattern-observe rule applies to projections and to value payloads; a bare local with a non-Copy payload is taken apart as before. Recorded in D144 as open for Eric's ruling.
Contributor
Author
|
Battery GREEN on 8417012: gate, uat and battery-checks under the pinned seed, logs in out/battery/. |
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.
#2531, #2532 and D144 (#2541), as ruled 2026-10-21
behav_2531_generic_impl_omits_return.wpins the omitted-return generic impl. Closes D140: a generic trait impl's method with the return omitted gets no return demand (contract ret_type = 0) and ICEs in MIR #2531.files.push(p)withpfrom a decidedsite_paths) was never heard. The program is checked until no demand changes a type, with decisions accumulating across rounds (a round hears only the still-undecided bindings; eight rounds oscillated without that). The sweep tool drops its hand-typedList.new(). Closes D93: an empty literal fed from another by-use-typed literal is refused ("empty sequence literal requires expected type"); the by-use pass does not chain #2532.let i = self.idxceremony report, one rule): a binding from a place of a plain-bits type takes the value; any other binding from a place observes it.match self.current: Some(c) => c.push(9)observes the List in place (MIR aliases the binding to the payload's place), a mutating call through an observing binding writes the field when the subject's root is mutable and is refused otherwise, assigning the field while the binding is live is refused as a live-view conflict, andlet i = self.idx; self.idx += 1is fine. New census patternplain-bits-field-copy-annotationandtools/sweep_plain_bits_field_copies.w; std and examples swept (8 sites).src/,build/andtools/keep their 436 annotations until a seed with D144 is pinned (the pinned seed refuses the unannotated let before a mutation), granted in the allowances at their current counts. Spec words in §3.8; record D144. Closes match on a field's Option payload binds a copy; a mutating call on the binding is silently lost #2541.Two follow-up commits after the first push: a by-value parameter is an owned pattern subject (§9.7), taken apart by value; and a bare local holding a non-Copy payload keeps D115's implicit take (
let (tx, rx) = pairin the channel fixtures), recorded in D144 as open for Eric's ruling. The #1531 compile-error fixture that pinned the view of a plain-bits field let gives way tobehav_d144_plain_bits_let_snapshots.w.