Repository navigation
#2950: the compiler's admissions: two comptime gaps closed, the rest owned by open issues - #3015
Merged
Merged
Conversation
… 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.
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).
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.
Battery red on the first run (spec_ss18_6: a payload variant call speculatively folded to its shorthand by
ct_try_fold_type_callno longer matched its pattern at run time). Filed as #3016 with the repro; the layer leaves such calls unfolded, and the shorthand fold serves acomptimeblock's result only.