Issue #3019: a text field of a local list’s element stored as a view into another local…

Open and answer this issue on GitHub.

ready, bugs, queued · opened 2026-12-01 · updated 2026-12-01 · 0 comments

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

Found

a text field of a local list’s element stored as a view into another local list, then the list changed while the store is still read, is a rustc ICE instead of NK2305: struct N { raw: String } struct E { v: String } fn make() -> String { let mut s = String() s.push_str("abc def") return s } fn main() throws { let mut ns = [N { raw: make() }] let mut es: Vec[E] = [] for n in ns { es.push(E { v: n.raw }) } ns[0].raw = make() println(es[0].v) } gives error[NK1343]: Internal compiler error with Rustc output: cannot borrow ns as mutable because it is also borrowed as immutable (same with es.push(E { v: ns[0].raw }) and with ns.push(N { raw: make() }) in place of the write; it should be refused NK2305 like a changed source of a let view, ADR-views-v4); suspected: view_changes.nika vc_view_of / the VcView set sees only let views, not a list that a push makes hold views of another list (check: whether vc_analyse records any view of ns for the push)

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