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
Codegen silent fallbacks: when a default trait method, closure or global-initializer body can't place its terminator, the emitter returns a constant 0 #2006
Found fixing stack #1992 (wave-sema 8aac1e66). CodegenTraits.generate_default_trait_method_for_impl, and the closure and global-initializer emitters, return a constant 0 when they cannot emit the body's terminator. CLAUDE.md 'No Silent Fallbacks': emitting a placeholder value when translation fails is forbidden — it must be a loud BUG with the function's name and source location and a non-zero exit. Find all three sites (and any sibling that returns const 0 / undef on failure — rg -n 'wl_const_int\(.*0, 0\)' src/Codegen*.w near a 'no terminator' path), make each a sema/codegen phase bug naming the function, and add an internals/phase test that reaches each failure path (or, if it is unreachable, a comment with the proof and a BUG that fires if it ever is).
Activity
Codegen: a MIR statement or terminator that cannot be emitted is a re…
Codegen: a MIR statement or terminator that cannot be emitted is a re…
Codegen: a MIR statement or terminator that cannot be emitted is a re…
Migrated unit constants stay in their unit; a later global read by an…
D173: a call of a non-callable local is an error at the call, never a…