Issue #2867: a temporary passed to a parameter that does not keep it, made in a sync…

Open and answer this issue on GitHub.

ready, bugs, queued · opened 2026-11-28 · updated 2026-11-29 · 0 comments

Filed by the driver from the Found: of the run of issue-2588 (#2588) (owner, 2026-11-06).

Found

a temporary passed to a parameter that does not keep it, made in a sync function, still panics “a call the compiler proved cannot pause paused” instead of NK2202 (ADR-297 D3); probe use std::fs / struct Res { name: String } / impl Cleanup for Res { fn cleanup(ref mut self) throws { fs::write(f"nk1323-{self.name}", fs::scratch(), "x") } } / fn eat(r: Res) sync throws { } / fn make() sync throws { eat(Res { name: "a" }) } / fn main() throws { make() }; traced: check_crossings_a_value_with_a_cleanup_made refuses only ids in state.discarded, and an argument to a parameter outside contract.keeps (check_core_call.nika) is never marked though it dies at the call

To build

Done when

The probe or check gives the expected output the first item names from its ADR or Part I-III section, and a tests/compiler/tests/ test (or the named check) that failed on the unfixed tree is green; or the probe already passes on develop and a test pins it, naming the commit that fixed it; or the issue is closed as by design, naming the function or ADR.


Generated by Claude Code

Back to Open Issues