Repository navigation
Merged
Conversation
added 6 commits
October 23, 2026 14:33
A pipeline stage's `it` after another stage's (`xs |> map(it * it) |> collect[List]()`) was refused as a nested `it` (E0951): the parser counted the implicit-closure depth per expression. Each argument that mentions `it` is its own closure; two `it`s in one argument still read one parameter.
…gh it (#2524) `xs[i] ?? 0` on a `List[Option[i32]]`: the element place is a `&Option[i32]` (D27), so the carrier is what the view observes and the default is its payload. Sema matched the `&Option` as a carrier itself and refused the join; MIR lowered the view as the Option it is not. Sema unwraps the pointee; a non-Copy payload reached through the view stays a view of it (`Option[&T]` of the payload, D22); MirLower dereferences the view before the discriminant read.
`fn find(xs: &List[i32], want: i32): for x in xs: if x == want: return x; return -1` joined `&i32` with `i32` and ICE'd in MIR (an integer assigned to a reference-typed return local). D22: a view materializes its Copy value where an owned demand is established, and the join of a view arm with an owned arm is the owned value, as an `if` with mixed arms is. The return-type join takes the value; once inferred, every returned view of it records its contextual copy (the walk mirrors convert_body_values_to_option). An inferred return of a view alone keeps the view (the D22 acceptance cell err_d22_inferred_return_preserves_view;
…ype (#2443) Sema owns every expression's type (D65). The operator-method paths returned the method's return without recording it, so `(a - 2.0).x` had no type for the parenthesized base: MIR fell back to arithmetic over `V` and `f64`, typed it Unit, and the validator refused a field projected out of a scalar (an ICE). Both the binary and the unary method paths record it.
…#2400) A struct literal that omits a field evaluates the field's default; the literal-site check ran it under the literal's module, so a name the default uses that only the declaring module imports (`V2 {}` from `game`, used by `controls`) failed with "unknown type 'V2' in struct literal". The default is the declaring module's expression: the check switches to that declaration's source context and restores the literal's after.
…2379) `first([7, 8, 9])` at `xs: [T; 3]` reported "cannot infer type parameter 'T'": under no demand the literal is a List (D113), whose shape did not match the array parameter. The binder reads the argument node: a bracket literal at `[T; N]` binds T from its elements' type and a generic N from its count, and the argument is then typed as the array the specialization demands (D93: a collection literal is typed by its use). A join decided under no demand that a later demand agrees with is the same decision with its demand named, not a conflict.
Contributor
Author
|
Battery GREEN on 077d684 (the stack top: issues-b on charptr), 669 s, |
ehartford
marked this pull request as ready for review
October 23, 2026 18:44
This was referenced Oct 23, 2026
Closed
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.
Five fixes from the open-issue backlog, one commit each with a behavior fixture that failed before its fix:
it * it: a second use of the implicit parameter is read as a nested closure #2545:itopens one implicit closure per call argument (xs |> map(it * it) |> collect[List]()was refused as a nestedit).??refuses a view of an Option (xs[i] ?? 0on a List[Option[i32]]): D22 says ?? is transparent to view origins #2524:??looks through a view of its carrier (xs[i] ?? 0on aList[Option[i32]]); MIR dereferences the view before the discriminant read.return xof &i32 besidereturn -1) #2325: a view return joined with an owned return is the owned value (return xof&i32besidereturn -1ICE'd in MIR); an inferred return of a view alone keeps the view, as the D22 acceptance cells rule (Returning a Copy element of an owned array parameter is refused as a view: fn arr(xs: [i32; 2]): xs[0] #2334 closed as by design).(a - 2.0).x, is an internal compiler error #2443: an operator resolved to a method records the method's return as its type (D65);(a - 2.0).xICE'd with a field projected out of a Unit.ActionFrame {}needsuse gamefor a default'sV2#2400: a field's default is checked in its declaring module at every literal (V2 {}from a module only the declaring module imports).first([7, 8, 9])at[T; 3], and[T; N]) and is typed as that array (D93, D113).Stacked on #2586 (the Linux seed legs' fixes). The first battery on the stack (315c2fb) was red on two D22 acceptance cells, behav_1903 and the typed-dump cell (the #2334 change) and on behav_zlib_gunzip_owned (the helper's contract); both corrected, the battery reruns on the stack's top.