Repository navigation
rust: Port borrowed output service getter (#4039) - #4042
Merged
Merged
Conversation
zackees
marked this pull request as ready for review
November 8, 2026 16:57
zackees
enabled auto-merge
November 8, 2026 16:57
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Nov 8, 2026
zackees
force-pushed
the
port/output-service-getter
branch
from
November 8, 2026 18:07
9a49261 to
209c813
Compare
zackees
enabled auto-merge
November 8, 2026 18:07
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 #4039.
Ports the borrowed output service getter to Rust, preserving pointer identity, absent services, unchanged output state, and the existing NULL diagnostic. Rust rejects NULL before invoking the private member-address accessor. Public headers and pre-existing C tests remain unchanged.
The C characterization is committed before the verbatim extraction. RED commit 2a04d5d fails both safe core tests at the deliberate stub; GREEN commit bb6b4ec passes all six core, real-header layout, and differential tests. A temporary mutation returning NULL for live outputs fails both fixed-edge and randomized differential tests. There are no intentional behavior differences. Tier 4 does not apply to this query.
Validation:
Test cost: 25 reduced-parity runs of the six new Rust cases; longest 0.021 seconds, peak RSS 17.7 MiB, no test-owned threads. Tests remain modules in the existing core-state category binary.