Skip to content

Commit 7b79801

Browse files
committed
Auto merge of rust-lang#2375 - RalfJung:rustup, r=RalfJung
Rustup
2 parents 3b1eeab + 98c4019 commit 7b79801

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ install that exact version of rustc as a toolchain:
2828
This will set up a rustup toolchain called `miri` and set it as an override for
2929
the current directory.
3030

31-
If you want to also have `clippy` installed, you need to run this:
32-
```
33-
./rustup-toolchain "" -c clippy
34-
```
35-
3631
[`rustup-toolchain-install-master`]: https://github.com/kennytm/rustup-toolchain-install-master
3732

3833
## Building and testing Miri
@@ -131,6 +126,8 @@ development version of Miri using
131126

132127
and then you can use it as if it was installed by `rustup`. Make sure you use
133128
the same toolchain when calling `cargo miri` that you used when installing Miri!
129+
Usually this means you have to write `cargo +miri miri ...` to select the `miri`
130+
toolchain that was installed by `./rustup-toolchain`.
134131

135132
There's a test for the cargo wrapper in the `test-cargo-miri` directory; run
136133
`./run-test.py` in there to execute it. Like `./miri test`, this respects the

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0ed9c64c3e63acac9bd77abce62501696c390450
1+
6077b7cda466afa2b75a62b232ab46dbeb148bcb

src/helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
259259
let mir = this.load_mir(f.def, None)?;
260260
let dest = match dest {
261261
Some(dest) => *dest,
262-
None => MPlaceTy::dangling(this.layout_of(mir.return_ty())?).into(),
262+
None => MPlaceTy::fake_alloc_zst(this.layout_of(mir.return_ty())?).into(),
263263
};
264264
this.push_stack_frame(f, mir, &dest, stack_pop)?;
265265

0 commit comments

Comments
 (0)