Repository navigation
Merged
Conversation
…t by a second Sema over the module D93 types `let xs = []` from its first use. The decision was applied by checking the whole module again with a fresh Sema: for the compiler's own source (one module, 20,886 declarations) that second pass was 53 s of a 107 s Sema, to apply seventeen body-local decisions. A body's settle loop, which already re-checks the body for D126's int locals, now takes the literal demands recorded during its pass: each binding's demanded type becomes a body decision (literal_body_decisions), the pass's diagnostics go (the call on the untyped binding is one of them), and the body is checked again at the decided types. A binding two typed uses disagree about is left to the module round, which reports the disagreement at the second use as before (err_d93_two_demands). The frontend's profile line says how many passes a module took (`checks=K probe-ms=P literal-rounds=L rounds-ms=R`) and lists the bindings that still force a round (`[profile] literal-demand`). check src/main.w: checks=2, 107 s of Sema → checks=1, 54 s.
ehartford
marked this pull request as ready for review
November 9, 2026 00:15
Contributor
Author
|
Battery GREEN on c160226: |
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.
Fixes #3099.
D93 types
let xs = []from its first use. The decision was applied by checking the whole module again with a fresh Sema: for the compiler's own source (one module, 20,886 declarations) that second pass was 53 s of a 107 s Sema, to apply seventeen body-local decisions.A body's settle loop, which already re-checks the body for D126's int locals, now takes the literal demands recorded during its pass: each binding's demanded type becomes a body decision, the pass's diagnostics go (the call on the untyped binding is one of them), and the body is checked again at the decided types. A binding two typed uses disagree about is left to the module round, which reports the disagreement at the second use as before (
err_d93_two_demands). The frontend's profile line now says how many passes a module took (checks=K probe-ms=P literal-rounds=L rounds-ms=R) and lists the bindings that still force a round.check src/main.w:checks=2, 107 s of Sema →checks=1, 54 s. The 134 literal-typing fixtures pass;behav_3099_literal_binding_settles_in_body.wadded. Gate running; battery next.