Issue #2325: a std enum in an f-string hole gets past the checker and reaches rustc: `fn…

Open and answer this issue on GitHub.

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

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

Found

a std enum in an f-string hole gets past the checker and reaches rustc: fn main() throws { let a = par::Order::Kept\n println(f"{a}") } gives NK1343 “nikaia_std::par::Order doesn’t implement std::fmt::Display”. It should be refused with NK1201, as a user enum is (enum E { A, Bc } then f"{E::Bc}" gives NK1201 “has no text form”). The same happens with meta::Access. Traced to check_exprs.nika a_value_with_no_text_in_a_hole, which skips every name with “::” that no package declares (“A std type … is left alone”). The fix needs to know which std types have a text form, a contract column, so it is not built here; no decision yet.

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