Issue #1407: lower-std lowers a sync fn that calls an async fn instead of refusing it with NK2202

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).

Found

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.

To build

Done when

lower-std refuses the probe with NK2202 on the .nika line, and its test is green.

Not in this issue

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.

Back to Open Issues