Skip to content

x test core fails when download-rustc is enabled #110352

Closed
@jyn514

Description

@jyn514

I tried this code: ./configure --set download-rustc && x test core

I expected to see this happen: All tests pass

Instead, this happened:

Testing {core} stage2 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
   Compiling core v0.0.0 (/home/jyn/src/rust/library/core)
error[E0773]: attempted to define built-in macro more than once
    --> /home/jyn/src/rust/library/core/src/macros/mod.rs:1310:5
     |
1310 |     macro_rules! cfg {
     |     ^^^^^^^^^^^^^^^^
     |
note: previously defined here
    --> /rustc/ce1073ba9d894b2e351b2a85fcd39f2c99b78974/library/core/src/macros/mod.rs:1310:5

error[E0152]: duplicate lang item in crate `core` (which `corebenches` depends on): `sized`.
  |
  = note: the lang item is first defined in crate `core` (which `std` depends on)
  = note: first definition in `core` loaded from /home/jyn/src/rust/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-05898138a596088a.rlib
  = note: second definition in `core` loaded from /home/jyn/src/rust/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-linux-gnu/release/deps/libcore-83f7e02d8b0410a3.rlib

Some errors have detailed explanations: E0152, E0277, E0307, E0773.
error: could not compile `core` (test "coretests") due to 372 previous errors; 10 warnings emitted

Meta

HEAD is branched from ce1073b

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-download-rustcArea: The `rust.download-rustc` build option.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