Repository navigation
A function that reaches an assigner of a destroyer global assigns it (#3338); type methods on a type parameter are each instance's own type (#3332); a default body's join is each impl's (#3335, half) - #3341
Merged
Conversation
added 4 commits
November 14, 2026 17:39
… a join whose demand is Self is each impl's decision (#3335, the join half)
…nd records only function-pointer globals: with get c.sdl timed out on the per-function walk
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.
#3338 (§31.8.6).
with getrecords a function that assigns a function-pointer global through a call, a static helper included:F<TAB>assigns<TAB>G<TAB>F reaches A, whose body assigns G. The walk goes back from each assigner over an indexed caller table. Only function-pointer globals are recorded (what a destroyer clause can name). Test:conan_contract_proofs_assigns_test(direct, through a call, through a static, a typedef'd pointer global, a plain global, a call that reaches nothing).#3332 (§17.2).
T.name(),T.size(),T.align()andnameof[T]()in a generic function are each instance's own type.T.name()andT.size()aborted the compiler;nameof[T]()printedT(codegen read the name from the syntax). Sema records the type per body (note_type_method), MIR emits the constant, so both backends agree. Test:behav_3332_type_methods_on_a_type_parameter.#3335, the join half. A default method's body is checked under its impl's own signature, so a join whose demand is
Selfno longer reports "conflicting contextual join decisions" when two types implement the trait. Test:behav_3335_default_body_join_is_each_impls. The other half (Self.make(x)lowered with a receiver) follows separately.Spec. §31.8.6's status note becomes "Implemented" (status notes are kept true as code lands, Eric 2026-11-14).
Battery: GREEN on a9b84f1; the note is a docs-only commit on top. The run before it was red on the
sdlUAT scenario (with get c.sdltimed out on the first, per-function walk); the last code commit replaces that walk and the scenario passes in 123 s.Closes #3338. Closes #3332.