Skip to content

#2950: the compiler's admissions: two comptime gaps closed, the rest owned by open issues - #3015

Merged
ehartford merged 5 commits into
facade-error-header-hintfrom
compiler-admissions
Nov 3, 2026
Merged

ehartford merged 5 commits into
facade-error-header-hintfrom
compiler-admissions

Conversation

@ehartford

@ehartford ehartford commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Battery red on the first run (spec_ss18_6: a payload variant call speculatively folded to its shorthand by ct_try_fold_type_call no longer matched its pattern at run time). Filed as #3016 with the repro; the layer leaves such calls unfolded, and the shorthand fold serves a comptime block's result only.

… owned by open issues

A format spec in a comptime f-string formats through the runtime's spec
writers, as a runtime f-string does (fstring_spec_text; ':?' is still
refused, loudly). A variant with a payload, and a bare variant of a
payload-carrying enum, are comptime values (CV_ENUM) and fold back into
source as the shorthand with its payload (ComptimeTransform). A comptime
read of a name the unit never declared says so on the release compiler
too (eval_ident, #2949). The four admissions that stay are re-cited to
their open owners: #3012 REPL declarations, #3013 UAT 'expect image:',
#3014 bitfields in member records, #3010 the retained variadic case,
#3011 the C backend's key projection.

Fixtures behav_2950_comptime_fstring_spec, behav_2950_comptime_payload_variant.
@ehartford
ehartford added this pull request to stack #3008 November 3, 2026 07:32
@ehartford ehartford changed the title compiler admissions #2950: the compiler's admissions: two comptime gaps closed, the rest owned by open issues Nov 3, 2026
Eric Hartford added 4 commits November 3, 2026 02:43
…old serves comptime blocks only

Folded to its shorthand, AppError.Db(DbError.NotFound("users", "42"))
no longer matched .Db(.NotFound(..)) at run time (spec_ss18_6 on the
battery). ct_try_fold_type_call leaves an enum value with a payload as
the call it was written as; the fold still embeds a comptime block's
result (behav_2950_comptime_payload_variant).
…missions retire

peekable and the constructors are implemented (#3006); the peekable
refusal has no replacement to pin, and Iter.empty() with nothing to bind
its element type now says what would bind it (err_iter_empty_unbound_element).
@ehartford
ehartford marked this pull request as ready for review November 3, 2026 08:21
@ehartford
ehartford merged commit 7083214 into main Nov 3, 2026
@ehartford
ehartford deleted the compiler-admissions branch November 3, 2026 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant