Issue #2866: an unused temporary read through a field, made in a sync function, still…

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

an unused temporary read through a field, 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 make() sync throws { let n = Res { name: "a" }.name.len() } / fn main() throws { make() }; traced: check_crossings_a_value_with_a_cleanup_made (check_crossings.nika) refuses only ids in state.discarded, and a field or ref self receiver is never marked though it dies in the maker

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