Repository navigation
rt: ChannelDropFn is pub — main does not build (#1284's §18.1 check meets #1283's with_channel_create) - #1306
Merged
Merged
Conversation
…ature (§18.1 check, #1284, meets #1283) Main at 4b3a3c2 does not build: #1284 added the §18.1 check that a pub signature names only public types, and #1283 added with_channel_create, whose signature names the private alias ChannelDropFn in rt/channel_runtime.w. Each PR was green alone; the runtime objects compile in their own build targets, outside the check's sweep of lib/std, src and tools. The alias is public; :dev is green under the seed.
Contributor
Author
|
Battery on the fix tree: build rc=0, :fixpoint rc=0, :test rc=1 — the reds are main's own, not this change: |
ehartford
added a commit
that referenced
this pull request
Sep 22, 2026
…annel_create, and the rebind fixture's private P under the §18.1 check (#1318) rt-decl-audit compares each exported runtime definition's signature text with its stdlib declaration; #1283's `with_channel_create` spelled its drop_fn parameter through the alias ChannelDropFn while lib/std/channel.w declares `*const fn(*mut u8) -> Unit`, so the audit reported one divergent decl. The definition now spells the type inline (the alias stays for the runtime's private accessors, private again — #1306 made it pub only for the §18.1 check, which no longer sees it in a pub signature). deep-debug-tool-tests' analyze-audit-rebind fixture (build.w) declared `type P` private and `pub fn P.set(...) -> P`; #1284's §18.1 check rejects that. The fixture's type is pub. Under the seed: :rt-decl-audit green, :deep-debug-tool-tests green. Co-authored-by: Eric Hartford <[email protected]>
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.
Main at
4b3a3c2bfails atchannel-runtime-object:pub fn 'with_channel_create' names private type 'ChannelDropFn' in its signature; a public signature names only public types (§18.1). #1284 (the check) and #1283 (the runtime function) were each green alone; combined on main they conflict — the runtime objects compile in their own targets, outside the check's sweep. One word:pub type ChannelDropFn.:devgreen under the seed. Battery running; verdict below.