about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorjyn <github@jyn.dev>2023-04-22 09:53:22 -0500
committerjyn <github@jyn.dev>2023-05-30 23:40:51 -0500
commita80d69a6ac996616937fb41357f10db036f85f73 (patch)
tree47e6e58bb40f4162bfb43b3a91ec8626d04bd57c /tests/rustdoc-js-std/parser-errors.js
parent2f0a26607f324ad2d630c39e718e55725f8b108d (diff)
downloadrust-a80d69a6ac996616937fb41357f10db036f85f73.tar.gz
rust-a80d69a6ac996616937fb41357f10db036f85f73.zip
Fix `x test --stage 2 core` when download-rustc is enabled
This works by building std from source unconditionally instead of downloading it, for library tests only.

This was somewhat complicated because of the following requirements:
1. Unconditionally downloading libstd breaks `x test std`, because `coretests` requires the std loaded from the sysroot to match the std that's currently being tested.
2. Unconditionally rebuilding libstd breaks `x test ui-fulldeps librustdoc`, because anything loading `rustc_private` needs to use the same libstd that rustc was built with.

Break the knot by introducing a new `stage2-test-sysroot`, used only for testing `std` itself. This
holds a freshly compiled std, while `stage2` and `ci-rustc-sysroot` still hold the downloaded std.

This also extends the existing `cp_filtered` in Sysroot to apply to the `rust-std` component, not just the `rustc-dev` component.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions