Skip to content

x test compiler/rustc_borrowck fails and complains about undeclared rayon crate #131093

Closed
@ismailarilik

Description

@ismailarilik

I tried this commands on master branch:

x test compiler/rustc_abi
x test compiler/rustc_borrowck
x test compiler/rustc_interface
x test compiler/rustc_lint
x test compiler/rustc_metadata
x test compiler/rustc_middle
x test compiler/rustc_mir_dataflow
x test compiler/rustc_resolve
x test compiler/rustc_session
x test compiler/rustc_span
x check compiler/rustc_span

I expected to see this happen: All tests passed

Instead, this happened:

error[E0433]: failed to resolve: use of undeclared crate or module `rayon`
   --> compiler/rustc_data_structures/src/sync/parallel.rs:173:9
    |
173 |     use rayon::iter::{FromParallelIterator, IntoPa...
    |         ^^^^^ use of undeclared crate or module `rayon`

error[E0433]: failed to resolve: use of undeclared crate or module `rayon`
   --> compiler/rustc_data_structures/src/sync/parallel.rs:145:21
    |
145 |         OP: FnOnce(&rayon::Scope<'scope>) -> R + D...
    |                     ^^^^^ use of undeclared crate or module `rayon`

error[E0433]: failed to resolve: use of undeclared crate or module `rayon`
   --> compiler/rustc_data_structures/src/sync/parallel.rs:149:9
    |
149 |         rayon::scope(|s| FromDyn::from(op.into_inn...
    |         ^^^^^ use of undeclared crate or module `rayon`

error[E0433]: failed to resolve: use of undeclared crate or module `rayon`
   --> compiler/rustc_data_structures/src/sync/parallel.rs:162:17
    |
162 |                 rayon::join(
    |                 ^^^^^ use of undeclared crate or module `rayon`

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

There might be other x test or x check cases.

x test and x check is passing.

Meta

rustc +stage1 --version --verbose:

on --verbose
rustc 1.83.0-dev
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-unknown-linux-gnu
release: 1.83.0-dev
LLVM version: 19.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testsuiteArea: The testsuite used to check the correctness of rustcC-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions