Skip to content

rt: ChannelDropFn is pub — main does not build (#1284's §18.1 check meets #1283's with_channel_create) - #1306

Merged
ehartford merged 1 commit into
mainfrom
fix-main-build-channel-dropfn
Sep 22, 2026
Merged

ehartford merged 1 commit into
mainfrom
fix-main-build-channel-dropfn

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Main at 4b3a3c2b fails at channel-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. :dev green under the seed. Battery running; verdict below.

…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.
@ehartford
ehartford merged commit ae4013d into main Sep 22, 2026
1 of 5 checks passed
@ehartford

Copy link
Copy Markdown
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: behav_fn_abi_async (fixed by #1307) and eleven behav_migrate_* tests failing pub fn 'verify' names private type 'c_int' in its signature (§18.1) — #1284's check rejects with migrate output (fix in progress on its own PR). This PR turns main's build from broken to building; merge it first so the other fixes can be verified on a building tree.

@ehartford
ehartford deleted the fix-main-build-channel-dropfn branch September 22, 2026 14:48
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]>
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