Open and answer this issue on GitHub.
ready · opened 2026-11-08 · updated 2026-11-08 · 0 comments
Found in the run of #1392 (builder report, 2026-11-08).
In a crates/nikaia-std/src/tools/*.nika, a sync fn that calls the async fs::read_to_string is lowered by lower-std with .await inside a non-async Rust fn. rustc then refuses it (E0728). A program with the same call gets NK2202 from the compiler. lower-std should refuse it the same way, on the .nika line, before rustc sees it.
.nika with a sync fn that calls fs::read_to_string, run through lower-std.lower-std runs the same check that gives NK2202 for a program, and reports it on the .nika source.tests/compiler/ (a .nika and its .stderr) that shows NK2202 for this case.lower-std refuses the probe with NK2202 on the .nika line, and its test is green.
The other two notes of that report: the Rust API of a rust-library follows the lowering, which ADR-393 D1 already decides (see #978); and the 469 MB cargo cache of the rust-library test.