You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #105041 - matthiaskrgr:rollup-7ffry90, r=matthiaskrgr
Rollup of 10 pull requests
Successful merges:
- #104465 (Document more settings for building rustc for Fuchsia)
- #104951 (Simplify checking for `GeneratorKind::Async`)
- #104959 (Revert #104269 (to avoid spurious hang/test failure in CI))
- #104978 (notify the rust-analyzer team on changes to the rust-analyzer subtree)
- #105010 (Fix documentation of asymptotic complexity for rustc_data_structures::SortedMap)
- #105016 (Add sentence when rustdoc search is running)
- #105020 (rustdoc: merge background-image rules in rustdoc-toggle CSS)
- #105024 (rustdoc: remove `fnname` CSS class that's styled exactly like `fn`)
- #105027 (Rustdoc-Json: Add tests for linking to foreign variants.)
- #105038 (Clean up pr 104954)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
These can be run together in a shell environment by executing
219
-
`(source config-env.sh && ./x.py install)`.
246
+
Finally, the Rust compiler can be built and installed:
247
+
248
+
```sh
249
+
(source config-env.sh && ./x.py install)
250
+
```
220
251
221
252
Once `rustc` is installed, we can create a new working directory to work from,
222
253
`hello_fuchsia` along with `hello_fuchsia/src`:
@@ -641,31 +672,38 @@ available on the [Fuchsia devsite].
641
672
642
673
### Running the compiler test suite
643
674
644
-
Pre-requisites for running the Rust test suite on Fuchsia are:
645
-
1. Checkout of Rust source.
646
-
1. Setup of `config-env.sh` and `config.toml` from "[Targeting Fuchsia with a compiler built from source](#targeting-fuchsia-with-a-compiler-built-from-source)".
647
-
1. Download of the Fuchsia SDK. Minimum supported SDK version is [9.20220726.1.1](https://chrome-infra-packages.appspot.com/p/fuchsia/sdk/core/linux-amd64/+/version:9.20220726.1.1)
675
+
The commands in this section assume that they are being run from inside your
676
+
local Rust source checkout:
677
+
678
+
```sh
679
+
cd${RUST_SRC_PATH}
680
+
```
681
+
682
+
To run the Rust test suite on an emulated Fuchsia device, you must install the
683
+
Rust compiler locally. See "[Targeting Fuchsia with a compiler built from source](#targeting-fuchsia-with-a-compiler-built-from-source)"
684
+
for the steps to build locally.
648
685
649
-
Interfacing with the Fuchsia emulator is handled by our test runner script located
650
-
at `${RUST_SRC_PATH}/src/ci/docker/scripts/fuchsia-test-runner.py`.
686
+
You'll also need to download a copy of the Fuchsia SDK. The current minimum
687
+
supported SDK version is [9.20220726.1.1](https://chrome-infra-packages.appspot.com/p/fuchsia/sdk/core/linux-amd64/+/version:9.20220726.1.1).
651
688
652
-
We start by activating our Fuchsia test environment. From a terminal:
689
+
Fuchsia's test runner interacts with the Fuchsia emulator and is located at
690
+
`src/ci/docker/scripts/fuchsia-test-runner.py`. We can use it to start our
0 commit comments