<story><title>Miri: Interpreter for Rust&apos;s mid-level intermediate representation</title><url>https://github.com/rust-lang/miri</url></story><parent_chain></parent_chain><comment><author>steveklabnik</author><text>As of today, you can easily install miri on the nightly channel, which is why this is popping up today.&lt;p&gt;&lt;pre&gt;&lt;code&gt;  $ rustup component add miri —toolchain=nightly
&lt;/code&gt;&lt;/pre&gt;
You can then “cargo +nightly miri test” to run your tests under miri. You probably should “cargo clean” first.&lt;p&gt;Of course you can skip the explicit nightly flags in those commands if your default toolchain is nightly.</text></comment>
<story><title>Miri: Interpreter for Rust&apos;s mid-level intermediate representation</title><url>https://github.com/rust-lang/miri</url></story><parent_chain></parent_chain><comment><author>roblabla</author><text>I often find myself yearning for a Rust REPL. I wonder if it&amp;#x27;d be possible to run the rust compiler to lower the code down to MIR, and then run that in the Miri interpreter?</text></comment>