@@ -297,25 +297,27 @@ You can also directly run Miri on a Rust source file:
297
297
298
298
## Advanced topic: Syncing with the rustc repo
299
299
300
- We use the [ ` josh ` proxy ] ( https://github.com/josh-project /josh ) to transmit changes between the
300
+ We use the [ ` josh-sync ` ] ( https://github.com/rust-lang /josh-sync ) tool to transmit changes between the
301
301
rustc and Miri repositories. You can install it as follows:
302
302
303
303
``` sh
304
- cargo +stable install josh-proxy --git https://github.com/josh-project /josh --tag r24.10.04
304
+ cargo install --locked --git https://github.com/rust-lang /josh-sync
305
305
```
306
306
307
- Josh will automatically be started and stopped by ` ./miri ` .
307
+ [ Josh] ( https://github.com/josh-project/josh ) will automatically be started and stopped by the commands below .
308
308
309
309
### Importing changes from the rustc repo
310
310
311
311
* Note: this usually happens automatically, so these steps rarely have to be done by hand.*
312
312
313
313
We assume we start on an up-to-date master branch in the Miri repo.
314
314
315
+ 1 ) First, create a branch for the pull, e.g. ` git checkout -b rustc-pull `
316
+ 2 ) Then run the following:
315
317
``` sh
316
318
# Fetch and merge rustc side of the history. Takes ca 5 min the first time.
317
319
# This will also update the `rustc-version` file.
318
- ./miri rustc-pull
320
+ rustc-josh-sync pull
319
321
# Update local toolchain and apply formatting.
320
322
./miri toolchain && ./miri fmt
321
323
git commit -am " rustup"
@@ -328,12 +330,12 @@ needed.
328
330
329
331
### Exporting changes to the rustc repo
330
332
331
- We will use the josh proxy to push to your fork of rustc. Run the following in the Miri repo,
333
+ We will use the ` josh-sync ` tool to push to your fork of rustc. Run the following in the Miri repo,
332
334
assuming we are on an up-to-date master branch:
333
335
334
336
``` sh
335
337
# Push the Miri changes to your rustc fork (substitute your github handle for YOUR_NAME).
336
- ./miri rustc-push YOUR_NAME miri
338
+ rustc-josh-sync push YOUR_NAME miri
337
339
```
338
340
339
341
This will create a new branch called ` miri ` in your fork, and the output should include a link that
0 commit comments