You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Struct literal of a type parameter: fn mk[T](x: T) -> T: T { v: 1 } passes Sema, then fails as invalid MIR #1982
Found by the Sema/MIR wave (wave-sema). fn mk[T](x: T) -> T: T { v: 1 } called as mk(3) passes Sema and then fails as invalid MIR. A struct literal needs a concrete struct type; T is a type parameter with no bound that makes it constructible that way, so Sema must refuse the literal at the definition with a located error. Post-Sema invalid MIR is a compiler bug (D65). Failing-first compile_errors fixture.
Fixed on main in c884c1c (stack #2001 → #2010, seed-driven battery GREEN on b932ef6, tree identical to main). Fixture coverage is in the stack's commits.
Activity
Sema: a struct literal through a non-struct name is refused; through …
Sema: one arity check for every call path (#1973); owned ?? / unwrap_…
ehartford commentedon Oct 3, 2026
Fixed on main in c884c1c (stack #2001 → #2010, seed-driven battery GREEN on b932ef6, tree identical to main). Fixture coverage is in the stack's commits.