File tree 5 files changed +8
-8
lines changed
5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -233,14 +233,14 @@ You can also directly run Miri on a Rust source file:
233
233
## Advanced topic: Syncing with the rustc repo
234
234
235
235
We use the [ ` josh ` proxy] ( https://github.com/josh-project/josh ) to transmit changes between the
236
- rustc and Miri repositories. The eaisest way to run josh is via docker:
236
+ rustc and Miri repositories.
237
237
238
238
``` sh
239
- docker pull joshproject/ josh-proxy:latest
240
- docker run -it -p 8000:8000 -e JOSH_REMOTE =https://github.com -e JOSH_EXTRA_OPTS=-- no-background -v josh-vol:/data/git joshproject/josh-proxy:latest
239
+ cargo +stable install josh-proxy --git https://github.com/josh-project/josh --tag r22.12.06
240
+ josh-proxy --local= $HOME /.cache/josh --remote =https://github.com -- no-background
241
241
```
242
242
243
- This sets up a local volume ` josh-vol ` for josh's cache.
243
+ This uses a directory ` $HOME/.cache/ josh` as a cache, to speed up repeated pulling/pushing .
244
244
245
245
### Importing changes from the rustc repo
246
246
Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ if [ -z "$CARGO_PROFILE_DEV_OPT_LEVEL" ]; then
243
243
export CARGO_PROFILE_DEV_OPT_LEVEL=2
244
244
fi
245
245
# Enable rustc-specific lints (ignored without `-Zunstable-options`).
246
- export RUSTFLAGS=" -Zunstable-options -Wrustc::internal $RUSTFLAGS "
246
+ export RUSTFLAGS=" -Zunstable-options -Wrustc::internal -Wrust_2018_idioms -Wunused_lifetimes -Wsemicolon_in_expressions_from_macros $RUSTFLAGS "
247
247
# We set the rpath so that Miri finds the private rustc libraries it needs.
248
248
export RUSTFLAGS=" -C link-args=-Wl,-rpath,$LIBDIR $RUSTFLAGS "
249
249
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ impl FileDescriptor for Epoll {
36
36
Ok ( self )
37
37
}
38
38
39
- fn dup < ' tcx > ( & mut self ) -> io:: Result < Box < dyn FileDescriptor > > {
39
+ fn dup ( & mut self ) -> io:: Result < Box < dyn FileDescriptor > > {
40
40
Ok ( Box :: new ( self . clone ( ) ) )
41
41
}
42
42
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ impl FileDescriptor for Event {
21
21
"event"
22
22
}
23
23
24
- fn dup < ' tcx > ( & mut self ) -> io:: Result < Box < dyn FileDescriptor > > {
24
+ fn dup ( & mut self ) -> io:: Result < Box < dyn FileDescriptor > > {
25
25
Ok ( Box :: new ( Event { val : self . val } ) )
26
26
}
27
27
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ impl FileDescriptor for SocketPair {
15
15
"socketpair"
16
16
}
17
17
18
- fn dup < ' tcx > ( & mut self ) -> io:: Result < Box < dyn FileDescriptor > > {
18
+ fn dup ( & mut self ) -> io:: Result < Box < dyn FileDescriptor > > {
19
19
Ok ( Box :: new ( SocketPair ) )
20
20
}
21
21
You can’t perform that action at this time.
0 commit comments