rust/src
Matthias Krüger 0a14ae0fad
Rollup merge of #146501 - Enselic:x-test-filter, r=Mark-Simulacrum
compiletest: Fix `--exact` test filtering

This fix only changes the behavior when using `--exact` test filtering, which
was quite broken. Before this fix, the following runs 0 tests:

    $ ./x test tests/run-make/crate-loading -- --exact
    running 0 tests
    test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 431 filtered out; finished in 24.95µs

With the fix the desired test is run:

    $ ./x test tests/run-make/crate-loading -- --exact
    running 1 tests
    test [run-make] tests/run-make/crate-loading ... ok

Without `--exact` the set of run tests is unchanged. This still runs "too many" (cc rust-lang/rust#134341) tests

    $ ./x test tests/run-make/crate-loading
    running 3 tests
    test [run-make] tests/run-make/crate-loading-crate-depends-on-itself ... ok
    test [run-make] tests/run-make/crate-loading-multiple-candidates ... ok
    test [run-make] tests/run-make/crate-loading ... ok

This still runs the one and only right test

    $ ./x test tests/ui/lint/unused/unused-allocation.rs
    running 1 tests
    test [ui] tests/ui/lint/unused/unused-allocation.rs ... ok

### Notes

- I have not verified this on Windows which treats paths differently (but I see no reason why it should not work since my code should be platform agnostic).
2025-09-15 06:03:48 +02:00
..
bootstrap Rollup merge of #146471 - neuschaefer:no-target, r=Mark-Simulacrum 2025-09-15 06:03:46 +02:00
build_helper Fix some minor issues in comments 2025-08-24 16:58:22 +08:00
ci Auto merge of #146394 - Enselic:debuginfo-level-tests-2, r=jieyouxu 2025-09-13 07:24:30 +00:00
doc Rollup merge of #146506 - mikysett:patch-1, r=Urgau 2025-09-13 18:55:18 -04:00
etc htmldocck: fix a bug in relative paths / globs 2025-09-03 09:09:18 -07:00
gcc@4e995bd73c Update GCC submodule 2025-08-26 18:09:42 +02:00
librustdoc Don't store defaultness for inherent impl items 2025-09-12 15:14:15 -05:00
llvm-project@333793696b Update to LLVM 21.1.1 2025-09-10 10:24:07 +02:00
rustc-std-workspace
rustdoc-json-types Add new doc(attribute = "...") attribute 2025-08-28 15:56:29 +02:00
tools Rollup merge of #146501 - Enselic:x-test-filter, r=Mark-Simulacrum 2025-09-15 06:03:48 +02:00
README.md
stage0 Bump stage0 rustfmt 2025-09-05 20:20:09 +02:00
version Bump version to 1.92.0 2025-09-13 10:09:15 -04:00

This directory contains some source code for the Rust project, including:

  • The bootstrapping build system
  • Various submodules for tools, like cargo, tidy, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.