Skip to content

Commit

Permalink
Updated index.md ,added a command which can show an unoptimized MIR
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Prashant-Shekhar-Rao committed Sep 8, 2023
1 parent 054eb75 commit 54da525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mir/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ show you the MIR for your program. Try putting this program into play
button on the top:

[sample-play]: https://play.rust-lang.org/?gist=30074856e62e74e91f06abd19bd72ece&version=stable

MIR shown by link is missing some statements for unoptimized MIR use `-Z mir-opt-level=0 --emit mir`
```rust
fn main() {
let mut vec = Vec::new();
Expand Down

0 comments on commit 54da525

Please sign in to comment.