Repository navigation
Build graph, seed, Sema and c_import fixes: stale-input records, seed refresh, per-module extern classification, path-sensitive view invalidation, array constants (#1654 #1667 #1695 #1655 #1653) - #1705
Merged
Conversation
added 6 commits
September 25, 2026 23:30
…the action's input (#1654) build_cache_record fingerprinted inputs after the run, so an input edited during a long action (stage1, the release link, a test lane) was recorded with content the action never compiled and the stale output was fresh forever — no later edit or `touch` re-ran it. The loop now snapshots every cacheable target's input fingerprints at dispatch; the record compares and, when an input moved, warns naming it, drops the target's state and returns, so the next build re-runs the target.
…ation, not by whichever module declared the name last (#1695) fn_decl_source_paths keeps one path per symbol, so once std.fs (imported after the caller) declared `strerror`, ComptimeEval's call to its OWN `extern fn strerror` was classified by lib/std/fs.w — exempt — and its required `unsafe` block became "contains no unsafe operations". Every extern declaration site is now indexed by (module, name); a module that declares the extern itself is classified by that declaration. Pinned by a two-module test in both import orders (unsafe accepted, bare call refused).
…ified (#1667) `WITH=$PWD/src/main src/main build :seed` removed src/main before compiling the fetch helper with it, so the helper's build failed (127) and no seed remained. The old binary is now replaced only after the download's digest matches the lock.
… call on a returning branch leaves the fall-through view live (§16.2b.7, #1655) The poison a facade call puts on a view (facade_poison_foreign_views) was a per-binding flag applied in source order, so `if info.is_none(): curl_global_cleanup(); return 1` poisoned the read of `info` that only the other path reaches. The poison now travels in the branch snapshot beside the field-move set: saved at entry, restored per branch, and at the join a diverging branch contributes nothing (the #695 merge).
…d to its size — `[16]u8 { 0 }` is not With (#1653)
`type_from_translated_text` now parses `[N]T` into an array type instead of a
named type, an initializer that already carries its array type keeps it,
and the printer pads a short C initializer (`{ 0 }` → `[0 as u8; 16]`,
otherwise zero-filled) for both the array-typed and the typedef'd-array
(named `[16]u8`) cases. uuid.h's UUID_NULL — reached by `#include <pwd.h>`
on macOS — translates; pinned with typedef'd and plain array constants.
Contributor
Author
|
Seed-driven battery at 920dc90 (seed nightly-20260925-local-1, WITH=src/main), this host: |
ehartford
marked this pull request as ready for review
September 26, 2026 06:27
This was referenced Sep 26, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Five independent fixes, each with its own commit and test:
unsafe { strerror(code) }an "unsafe block contains no unsafe operations" error #1695 Sema: an extern call is classified by the calling module's own declaration (two-module test in both import orders).#include <pwd.h>on macOS fails to translate — uuid.h'sUUID_NULLarray constant renders as[16]u8 { 0, … }, which is not With syntax #1653 c_import: array constants translate to padded With array literals (#include <pwd.h>on macOS translates).No ownership/drop-scheduling change; batches with the paper-cuts battery discipline. Draft until the battery is posted.