Issue #2172: map.map into a kept list needs a collect that keeps the list’s kind…

Open and answer this issue on GitHub.

decision, bugs · opened 2026-11-18 · updated 2026-11-18 · 0 comments

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

Found

map.map into a kept list needs a collect that keeps the list’s kind (nikaia_std::list vs block::List): either a std helper (new Rust in std) or a generic helper emitted at each call site. Inlining R.map( v g(f(v))) fails in rustc with E0282 (an immediately called closure whose body calls a method)

Needs

supervisor decision: map.map into a kept list needs a collect that keeps the list’s kind (nikaia_std::list vs block::List): either a std helper (new Rust in std) or a generic helper emitted at each call site. Inlining R.map( v g(f(v))) fails in rustc with E0282 (an immediately called closure whose body calls a method)

Cause not marked

The Found does not say how sure its cause is (docs/issues.md I7): a cause it names is a hypothesis, unknown until checked. The second item checks it (nikaia run scripts/where.nika, a probe, callgrind) before anything is built on it; a cause shown false is answered wrong I7: ... in the report.

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