Issue #2891: Lowering: `let mut m: collections::BTreeMap[String, bool] =…

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-2873 (#2873) (owner, 2026-11-06).

Found

Lowering: let mut m: collections::BTreeMap[String, bool] = collections::BTreeMap(); for k in keys { let n = k.split(":").last() ?? continue; m.insert(n, true) }; for k in more { let x = k.clone(); let b = m.get(x) ?? true; m.insert(x, b) } (fn count(keys: ref Vec[String], more: ref Vec[String]) -> i64, use std::collections) gives NK1343 “EitherText<’_>: Borrow<nikaia_std::block::Text> is not satisfied” at m.get(x) on target/fast/nikaia at 35f8ef158, where it should run; traced: declared.nika maps an either Type to an owned String Ty (ADR-282 D15), so a_lookup_key_lent (check_reads.nika) lends the owned key as &x instead of FactKeyForm::Viewed (as_text(&x)), which a mixed key needs

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