Skip to content

cc_env tests fail on nightly-2026-07-31 toolchain #1820

Description

@xtqqczze

cc_env tests appear to regress on nightly-2026-07-31.

The tests pass on nightly-2026-07-30 but all 10 tests fail on nightly-2026-07-31 with the same ENOENT error:

thread '<test>' (<thread-id>) panicked at tests/support/mod.rs:114:60:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
Passing toolchain: nightly-2026-07-30
$ cargo +nightly-2026-07-30 test -q -p cc --test cc_env

running 10 tests
..........
test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.48s
Failing toolchain: nightly-2026-07-31
$ cargo +nightly-2026-07-31 test -q -p cc --test cc_env

running 10 tests
distcc --- FAILED
ccache_spaces --- FAILED
ccache --- FAILED
ccache_env_flags --- FAILED
extra_flags --- FAILED
clang_cl --- FAILED
leading_spaces --- FAILED
env_var_alternatives_override --- FAILED
more_spaces --- FAILED
path_to_ccache --- FAILED

failures:

---- distcc stdout ----

thread 'distcc' (6544163) panicked at tests/support/mod.rs:114:60:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- ccache_spaces stdout ----

thread 'ccache_spaces' (6544161) panicked at tests/support/mod.rs:114:60:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }

---- ccache stdout ----

thread 'ccache' (6544159) panicked at tests/support/mod.rs:114:60:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }

---- ccache_env_flags stdout ----

thread 'ccache_env_flags' (6544160) panicked at tests/support/mod.rs:114:60:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }

---- extra_flags stdout ----

thread 'extra_flags' (6544165) panicked at tests/support/mod.rs:114:60:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }

---- clang_cl stdout ----

thread 'clang_cl' (6544162) panicked at tests/support/mod.rs:114:60:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }

---- leading_spaces stdout ----

thread 'leading_spaces' (6544166) panicked at tests/support/mod.rs:114:60:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }

---- env_var_alternatives_override stdout ----

thread 'env_var_alternatives_override' (6544164) panicked at tests/support/mod.rs:114:60:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }

---- more_spaces stdout ----

thread 'more_spaces' (6544167) panicked at tests/support/mod.rs:114:60:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }

---- path_to_ccache stdout ----

thread 'path_to_ccache' (6544168) panicked at tests/support/mod.rs:114:60:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }


failures:
    ccache
    ccache_env_flags
    ccache_spaces
    clang_cl
    distcc
    env_var_alternatives_override
    extra_flags
    leading_spaces
    more_spaces
    path_to_ccache

test result: FAILED. 0 passed; 10 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

Since all cc_env tests fail immediately with the same ENOENT error and there was no change to the tests between these toolchains, this may be a Rust toolchain regression rather than an issue in cc-rs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions