Skip to content

./x.py test src/doc fails with "no rules matched" #52155

@euclio

Description

@euclio

commit: 0c0315c

An example in src/bootstrap/README.md, ./x.py test src/doc, doesn't seem to actually work. It fails with the following output:

$ RUST_BACKTRACE=1 ./x.py test src/doc
Updating only changed submodules
Submodules updated in 0.03 seconds
    Finished dev [unoptimized] target(s) in 0.22s
thread 'main' panicked at 'Error: no rules matched src/doc.', bootstrap/builder.rs:239:21
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
             at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1: std::sys_common::backtrace::print
             at libstd/sys_common/backtrace.rs:71
             at libstd/sys_common/backtrace.rs:59
   2: std::panicking::default_hook::{{closure}}
             at libstd/panicking.rs:211
   3: std::panicking::default_hook
             at libstd/panicking.rs:227
   4: std::panicking::rust_panic_with_hook
             at libstd/panicking.rs:511
   5: std::panicking::continue_panic_fmt
             at libstd/panicking.rs:426
   6: std::panicking::begin_panic_fmt
             at libstd/panicking.rs:413
   7: bootstrap::builder::StepDescription::run
             at bootstrap/builder.rs:239
   8: bootstrap::builder::Builder::run_step_descriptions
             at bootstrap/builder.rs:569
   9: bootstrap::builder::Builder::execute_cli
             at bootstrap/builder.rs:559
  10: bootstrap::Build::build
             at bootstrap/lib.rs:465
  11: bootstrap::main
             at bootstrap/bin/main.rs:29
  12: std::rt::lang_start::{{closure}}
             at /checkout/src/libstd/rt.rs:74
  13: std::panicking::try::do_call
             at libstd/rt.rs:59
             at libstd/panicking.rs:310
  14: __rust_maybe_catch_panic
             at libpanic_unwind/lib.rs:105
  15: std::rt::lang_start_internal
             at libstd/panicking.rs:289
             at libstd/panic.rs:392
             at libstd/rt.rs:58
  16: std::rt::lang_start
             at /checkout/src/libstd/rt.rs:74
  17: main
  18: __libc_start_main
  19: _start
failed to run: /home/euclio/repos/rust/build/bootstrap/debug/bootstrap test src/doc
Build completed unsuccessfully in 0:00:01

I didn't check the other examples, but they ought to be checked as well.

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)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions