[BUG] Native wildcard imports shadow the two-parameter Result type #26
Labels
No labels
alpha-1
bug
ci
docs
duplicate
enhancement
help wanted
invalid
performance
phase-6
question
refactor
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
erix/posixd#26
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Native wildcard imports in Posixd's existing held-file and pathname wire modules bring
lib_ipc::Result<T>into scope, while function signatures use the two-parameterResult<T, Error>form. The imported native alias takes only one type argument. This source-level type-arity defect prevents those modules from being compiled as written. Remove the wildcard imports and explicitly import only the native wire types/constants; preserve the intended local error type and the standard two-parameter result.Reproduction
At Posixd revision
fcf6641ad71f7d065d5d6ca81eedd16e9df05aec, inspectsrc/realm_io/external/file/wire.rsandsrc/realm_io/external/path_call/wire.rs. Both import the native module with a wildcard and declare two-parameter results. At their selected LibIPC revisionbebb7a740d1eb665e7325e5c6f3a7a0ec501032d,src/error.rsdeclarespub type Result<T> = core::result::Result<T, Error>and the crate publicly re-exports it.When compilation is re-enabled, compile the Posixd library under its supported target/configuration and retain the exact compiler result. No reproduction command was executed for this report: test/build/lint execution and CI observation remain deferred by user instruction.
Expected and actual behavior
Expected: the wire modules use the local mediator error type through the standard two-parameter result, while explicitly importing native packet and body contracts.
Actual source: the native one-parameter alias shadows that result name. The mismatch is identified from declarations and imports; no compiler diagnostic, exit status or runtime reproduction is claimed.
Environment and identity
fcf6641ad71f7d065d5d6ca81eedd16e9df05aec; LibIPCbebb7a740d1eb665e7325e5c6f3a7a0ec501032d.5d59dafe2da5aaccfee52ec83d706d760d01d928.Evidence and prior checks
The selected native alias declaration and both production wire-module signatures are direct source evidence. The same audit removed the analogous wildcard from the new directory wire adapter before publication. Explicit imports preserve the intended local error domain. Existing and newly authored runtime controls remain unrun; no CI result was inspected.
Tracking
Related work: original file status and seekable directories, Posixd review, and phase completion. The source repair and coherent revisions are signed and published; deferred test execution does not gate implementation acceptance.
Shared directory descriptions — 30 September 2026
Tell retains metadata-only bookmarks in the actual counted description arena and reuses existing associations; seek requires the original full description key.
Complete native correlation and output admission precede cursor progress; capacity and unknown-identity refusals preserve it. No new native route or clock grant is added.
The full status/directory work remains open: complete provider metadata/identity, pipe/stream status, remaining controls and full-parent reconciliation are unfinished. Both full EriX guest generations and external Rust/LLVM rebuilding inside EriX remain required and unperformed.
Related records and contracts
erikinkinen referenced this issue2026-09-30 16:42:29 +02:00
erikinkinen referenced this issue from erix/lib-posixabi2026-09-30 16:42:29 +02:00
erikinkinen referenced this issue from erix/docs2026-09-30 16:42:30 +02:00
erikinkinen referenced this issue from erix/integration2026-09-30 16:42:31 +02:00
erikinkinen referenced this issue from erix/lib-posixabi2026-09-30 16:42:31 +02:00
erikinkinen referenced this issue2026-09-30 16:42:32 +02:00
erikinkinen referenced this issue from erix/rootd2026-09-30 16:42:32 +02:00