Skip to content

Commit

Permalink
grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
tshepang committed Sep 8, 2023
1 parent 2ba5c2f commit 36510bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/rustc-dev-guide/src/mir/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ button on the top:
[sample-play]: https://play.rust-lang.org/?gist=30074856e62e74e91f06abd19bd72ece&version=stable
MIR shown by above link is optimized.
Some statements like `StorageLive` are removed in optimization.
This happens because compiler notices the value is never accessed in the code.
This happens because the compiler notices the value is never accessed in the code.
We can use `rustc [filename].rs -Z mir-opt-level=0 --emit mir` to view unoptimized MIR.
This requires the nightly toolchain.

Expand Down

0 comments on commit 36510bd

Please sign in to comment.