Skip to content

std missing is_console function for all *-win7-* targets #164340

Closed

Description

@Wyvern

rustc 1.101.0-nightly (7df8138 2026-10-14) with -Zbuild-std
affected targets:
i686-win7-windows-gnu
i686-win7-windows-msvc
x86_64-win7-windows-gnu
x86_64-win7-windows-msvc

error[: cannot find function `is_console` in this scope
    ╭▸ /rustc/7df81381d027710708209f36b98d11b1c88f8d2e/library/std/src/sys/stdio/windows.rs:121:9
    │
121 │     if !is_console(handle) {
    ╰╴        ━━━━━━━━━━ not found in this scope

error[: cannot find function `is_console` in this scope
    ╭▸ /rustc/7df81381d027710708209f36b98d11b1c88f8d2e/library/std/src/sys/stdio/windows.rs:284:13
    │
284 │         if !is_console(handle) {
    ╰╴            ━━━━━━━━━━ not found in this scope

For more information about this error, try `rustc --explain E0425`.
error: could not compile `std` (lib) due to 2 previous errors

Activity

  1. added
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Oct 15, 2026
  2. added
    C-bugCategory: This is a bug.
    T-libsRelevant to the library team, which will review and decide on the PR/issue.
    O-windows-7OS: Windows 7 or Windows Server 2008 R2 or etc.
    on Oct 15, 2026
  3. PaulDance commented on Oct 15, 2026

    @PaulDance
    Contributor

    Yep, we saw that too in our nightly CI run. From what I can see, it looks like a trivial oversight, so I'll open a PR to fix it.

    @rustbot claim

  4. removed
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Oct 15, 2026
  5. ChrisDenton commented on Oct 15, 2026

    @ChrisDenton
    Member

    Oh, sorry I missed that, I think it was the move to cfg_select! that confused things. It'd be nice if we had CI check configs 🙂.

  6. added 3 commits that reference this issue on Oct 15, 2026
    bd67553
    3083083
    7947dc7
  7. added a commit that references this issue on Oct 16, 2026
    fa859eb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.O-windows-7OS: Windows 7 or Windows Server 2008 R2 or etc.T-libsRelevant to the library team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions