Skip to content

x build -h -v panics since #104952 #106165

Closed
@jyn514

Description

@jyn514

Code

I tried this code:

x build --help --verbose

I expected to see this happen: A list of all crates that can be built.

Instead, this happened:

running: /home/jyn/src/rust/rust/build/bootstrap/debug/bootstrap b -h -v
thread 'main' panicked at 'metadata missing for test: {}', lib.rs:1399:67
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Version it worked on

It most recently worked on: 8ad447c

Version with regression

88c58e3 / #104952

Backtrace

Backtrace

stack backtrace:
   0: rust_begin_unwind
             at /rustc/e080cc5a659fb760c0bc561b722a790dad35b5e1/library/std/src/panicking.rs:575:5
   1: core::panicking::panic_fmt
             at /rustc/e080cc5a659fb760c0bc561b722a790dad35b5e1/library/core/src/panicking.rs:65:14
   2: bootstrap::Build::in_tree_crates::{{closure}}
             at ./src/bootstrap/lib.rs:1399:67
   3: core::option::Option<T>::unwrap_or_else
             at /rustc/e080cc5a659fb760c0bc561b722a790dad35b5e1/library/core/src/option.rs:828:21
   4: bootstrap::Build::in_tree_crates
             at ./src/bootstrap/lib.rs:1399:25
   5: bootstrap::builder::ShouldRun::crate_or_deps
             at ./src/bootstrap/builder.rs:432:22
   6: <bootstrap::compile::Std as bootstrap::builder::Step>::should_run
             at ./src/bootstrap/compile.rs:57:9
   7: bootstrap::builder::Builder::get_help
             at ./src/bootstrap/builder.rs:798:26
   8: bootstrap::flags::Flags::parse::{{closure}}
             at ./src/bootstrap/flags.rs:357:25
   9: bootstrap::flags::Flags::parse
             at ./src/bootstrap/flags.rs:558:13
  10: bootstrap::config::Config::parse_inner
             at ./src/bootstrap/config.rs:849:21
  11: bootstrap::config::Config::parse
             at ./src/bootstrap/config.rs:845:9
  12: bootstrap::main
             at ./src/bootstrap/bin/main.rs:14:18
  13: core::ops::function::FnOnce::call_once
             at /rustc/e080cc5a659fb760c0bc561b722a790dad35b5e1/library/core/src/ops/function.rs:251:5

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)regression-untriagedUntriaged performance or correctness regression.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions