[BUG] Manual viewport binding prevents runtime compilation #9

Open
opened 2026-10-24 02:46:16 +02:00 by erikinkinen · 0 comments
Owner

Summary

The physical-row manual pager binds a local viewport value with the same name
as its geometry helper. The later resize call resolves to that value, preventing
both hosted runtime tests and the native executable from compiling.

Reproduction

At f9eb44395e96a3d3771a95935bdaf103b7776a20, use the normal resolved internal
Cargo graph and run:

cargo test --all-targets
cargo check --bin coreutils --target x86_64-unknown-none --features coreutils-runtime

Both default and all-feature runtime configurations are affected.

Expected and actual behavior

The runtime should compile and keep using the read-only geometry helper during
resize. Instead, rustc exits 101 with:

error[E0618]: expected function, found `Viewport`
  --> src/runtime/execute/manual/pager.rs:36:38

The binding on line 17 shadows the function before its second call.

Environment and identity

  • Coreutils f9eb44395e96a3d3771a95935bdaf103b7776a20; the later writer-only
    descendant retains the same runtime source.
  • Rust 1.97.1, hosted x86_64 Linux and x86_64-unknown-none checks.
  • Compilation only; no image or guest execution is needed to reproduce it.
  • No capability acquisition or authority change is involved.
  • Last passing runtime source: 7bbe1f2d641eb125b6d0a2da710515d9f925d4ee.

Evidence and prior checks

The first current-source unit, hosted Clippy and freestanding checks report the
same E0618 diagnostic. Formatting and library documentation do not compile this
runtime path and therefore do not establish its correctness.

  • Remove the helper/binding name collision.
  • Build hosted and freestanding runtime configurations without warnings.
  • Pass the physical pager controls and existing unit suites.

Tracking

Related to physical manual pagination
and Coreutils PR 2.

## Summary The physical-row manual pager binds a local `viewport` value with the same name as its geometry helper. The later resize call resolves to that value, preventing both hosted runtime tests and the native executable from compiling. ## Reproduction At `f9eb44395e96a3d3771a95935bdaf103b7776a20`, use the normal resolved internal Cargo graph and run: ```sh cargo test --all-targets cargo check --bin coreutils --target x86_64-unknown-none --features coreutils-runtime ``` Both default and all-feature runtime configurations are affected. ## Expected and actual behavior The runtime should compile and keep using the read-only geometry helper during resize. Instead, rustc exits 101 with: ```text error[E0618]: expected function, found `Viewport` --> src/runtime/execute/manual/pager.rs:36:38 ``` The binding on line 17 shadows the function before its second call. ## Environment and identity - Coreutils `f9eb44395e96a3d3771a95935bdaf103b7776a20`; the later writer-only descendant retains the same runtime source. - Rust 1.97.1, hosted x86_64 Linux and `x86_64-unknown-none` checks. - Compilation only; no image or guest execution is needed to reproduce it. - No capability acquisition or authority change is involved. - Last passing runtime source: `7bbe1f2d641eb125b6d0a2da710515d9f925d4ee`. ## Evidence and prior checks The first current-source unit, hosted Clippy and freestanding checks report the same E0618 diagnostic. Formatting and library documentation do not compile this runtime path and therefore do not establish its correctness. - [ ] Remove the helper/binding name collision. - [ ] Build hosted and freestanding runtime configurations without warnings. - [ ] Pass the physical pager controls and existing unit suites. ## Tracking Related to [physical manual pagination](https://git.erikinkinen.fi/erix/coreutils/issues/7) and [Coreutils PR 2](https://git.erikinkinen.fi/erix/coreutils/pulls/2).
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:33:35 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
erix/coreutils#9
No description provided.