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
Unannotated Ok/Err join (if or match) types the binding 0; check passes, MIR aborts #1856
BUG: `:?` reached MIR for type 0 with no registered formatter (D61) [src/MirLower.w:3401 MirBuilder.lower_debug_write_place]
The binding's type is 0: Ok(a) alone is Result[A, ?], Err(b) alone Result[?, B], and the join does not combine them. The Option spelling (Some(x) / None) joins.
Expected
Ok(2); Sema types the join Result[i64, str] (or refuses it with a diagnostic) — post-Sema type 0 is a compiler bug.
Workaround
Annotate the binding (let r: Result[i64, str] = ...). Found while fixing the §13.6a comprehension yield typing (which no longer goes through this join).
Activity
An unannotated join of Ok(a) and Err(b) arms types Result[A, B] (#1856)
Sema/MIR: CK_FN loud on a missing fn (#1859); atomics default SeqCst (#…
ehartford commentedon Oct 3, 2026
Fixed on main by 792351b (stack #2007, battery green on 0f13a62). An unannotated join of Ok(a)/Err(b) arms types Result[A, B].
§4.2.1: soft literals settle generic enum bindings at the demanding u…
#1856 (§4.2.1): soft numeric literals settle at the demanding use (#2396