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
ICE: print(None < Some(1)) — invalid MIR before codegen, "local _2 has ty=117, a generic declaration with no type arguments in main" #2946
Conformance audit 2026-11-02, probing §10.1/§11.8 (D97: Option is None | Some(T), so None sorts first). Installed compiler (main 038c50c):
print(None < Some(1))
error: internal compiler error: invalid MIR before codegen (a bug in the With compiler, not in this program): local _2 has ty=117, a generic declaration with no type arguments in `main`
With typed bindings (let x: Option[i32] = None; let y: Option[i32] = Some(1); print(x < y)) it compiles. Sema accepted an Option with no type argument into MIR (the D65 class: MIR reported the contradiction correctly; Sema should have typed None from Some(1), or refused with a diagnostic). Route: with analyze repro.w audit:resolution, then --dump-typed.
Activity
#3016, #3032, #2946, #2976, #2949, #3051, #3005, #3001, #3017, #2521:…
ehartford commentedon Nov 7, 2026
Fixed in #3056 (merged as afbdbb1).