Issue #2144: let a = 5.seconds(); let b = 7.seconds(); println((a - b).in_nanos()) in…

Open and answer this issue on GitHub.

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

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

Found

let a = 5.seconds(); let b = 7.seconds(); println((a - b).in_nanos()) in fn main() throws stops with Rust’s raw “thread ‘main’ (NNNNN) panicked at …/library/core/src/time.rs:1277:31: overflow when subtracting durations” plus a stack backtrace, not with “tests/X.nika:N: the program stopped: …”. The thread id changes each run, so no .stops test can hold it. Traced: Duration::sub panics inside core and is not #[track_caller], so abort.rs report_in_nikaia_terms finds no site and falls back to Rust’s hook (on purpose for std’s own panics). ADR-402 D1 says plain - panics, but nothing says it names the Nikaia line. No decision yet on whether the emitter should send span + - * through a checked runtime call that keeps the caller’s line.

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