@@ -241,18 +241,20 @@ We use the [`josh` proxy](https://github.com/josh-project/josh) to transmit chan
241
241
rustc and Miri repositories. You can install it as follows:
242
242
243
243
``` sh
244
- cargo +stable install josh-proxy --git https://github.com/josh-project/josh --tag r22 .12.06
244
+ RUSTFLAGS= " --cap-lints=warn " cargo +stable install josh-proxy --git https://github.com/josh-project/josh --tag r23 .12.04
245
245
```
246
246
247
247
Josh will automatically be started and stopped by ` ./miri ` .
248
248
249
249
### Importing changes from the rustc repo
250
250
251
+ * Note: this usually happens automatically, so these steps rarely have to be done by hand.*
252
+
251
253
We assume we start on an up-to-date master branch in the Miri repo.
252
254
253
255
``` sh
254
256
# Fetch and merge rustc side of the history. Takes ca 5 min the first time.
255
- # This will also update the ' rustc-version' file.
257
+ # This will also update the ` rustc-version` file.
256
258
./miri rustc-pull
257
259
# Update local toolchain and apply formatting.
258
260
./miri toolchain && ./miri fmt
@@ -266,12 +268,6 @@ needed.
266
268
267
269
### Exporting changes to the rustc repo
268
270
269
- Keep in mind that pushing is the most complicated job that josh has to do -- pulling just filters
270
- the rustc history, but pushing needs to construct a new rustc history that would filter to the given
271
- Miri history! To avoid problems, it is a good idea to always pull immediately before you push. If
272
- you are getting strange errors, chances are you are running into [ this josh
273
- bug] ( https://github.com/josh-project/josh/issues/998 ) . In that case, please get in touch on Zulip.
274
-
275
271
We will use the josh proxy to push to your fork of rustc. Run the following in the Miri repo,
276
272
assuming we are on an up-to-date master branch:
277
273
@@ -280,9 +276,9 @@ assuming we are on an up-to-date master branch:
280
276
./miri rustc-push YOUR_NAME miri
281
277
```
282
278
283
- This will create a new branch called ' miri' in your fork, and the output should
284
- include a link to create a rustc PR that will integrate those changes into the
285
- main repository .
279
+ This will create a new branch called ` miri ` in your fork, and the output should include a link that
280
+ creates a rustc PR to integrate those changes into the main repository. If that PR has conflicts,
281
+ you need to pull rustc changes into Miri first, and then re-do the rustc push .
286
282
287
283
If this fails due to authentication problems, it can help to make josh push via ssh instead of
288
284
https. Add the following to your ` .gitconfig ` :
0 commit comments