about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorStuart Cook <Zalathar@users.noreply.github.com>2024-12-29 22:45:39 +1100
committerGitHub <noreply@github.com>2024-12-29 22:45:39 +1100
commitfc89cb202f1e34fdf57086dda5d560d9cc5ca766 (patch)
treee808ba971da10f29eee80cbe610e0a1a1fc745fe /compiler/rustc_codegen_llvm/src
parenta43730b2af4699d914f9d36e0ba98ff5089e3925 (diff)
parent4192293b4d546a20dcd25ad344ef9fbc84e8f2a9 (diff)
downloadrust-fc89cb202f1e34fdf57086dda5d560d9cc5ca766.tar.gz
rust-fc89cb202f1e34fdf57086dda5d560d9cc5ca766.zip
Rollup merge of #134883 - Zalathar:shared-helpers, r=clubby789
bootstrap: Fix `./x check bootstrap` by moving `shared_helpers::tests`

Running `./x check bootstrap` currently doesn't work, because it builds the bootstrap shim binaries with `cfg(test)`, and those binaries can't find a `tests` submodule when they include `shared_helpers.rs` via `#[path]`.

This PR fixes that by taking the tests module and moving it to `super::tests::shared_helpers_tests` instead.

(The extra `tests` submodule prevents tidy from complaining about unit tests that aren't in a dedicated tests module.)

---

It would be nice to also run `./x check bootstrap compiletest` in CI, so that this and #134848 don't regress, but I didn't want to bundle that change with this fix.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions