Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ceaae08

Browse files
Prashant-Shekhar-RaoRiverIsAMovingBodyOfWater
authored andcommittedSep 8, 2023
Updated index.md. Added a command which can show an unoptimized MIR
The current playground link used in the page of MIR shows a optimized version of MIR which is missing some statements such as StorageLive . Updated to use a local command which shows unoptimized MIR that would be more useful for pedagogical purposes.
1 parent 054eb75 commit ceaae08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/mir/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ show you the MIR for your program. Try putting this program into play
6262
button on the top:
6363

6464
[sample-play]: https://play.rust-lang.org/?gist=30074856e62e74e91f06abd19bd72ece&version=stable
65-
65+
MIR shown by link is missing some statements for unoptimized MIR use `-Z mir-opt-level=0 --emit mir`
6666
```rust
6767
fn main() {
6868
let mut vec = Vec::new();

0 commit comments

Comments
 (0)
Please sign in to comment.