diff options
| author | Tshepang Mbambo <tshepang@gmail.com> | 2023-09-08 12:57:33 +0200 |
|---|---|---|
| committer | Tshepang Mbambo <tshepang@gmail.com> | 2023-09-08 12:59:13 +0200 |
| commit | c6c6c7aa3b75d5e24a308188fab3111fa5fd6820 (patch) | |
| tree | f2d7acfb4f3b05dffafda833af711123479c7990 /src/doc/rustc-dev-guide | |
| parent | e2cc9c817763b1ea4fe83bbc6a33cce642fd7633 (diff) | |
| download | rust-c6c6c7aa3b75d5e24a308188fab3111fa5fd6820.tar.gz rust-c6c6c7aa3b75d5e24a308188fab3111fa5fd6820.zip | |
typo
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/mir/index.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/rustc-dev-guide/src/mir/index.md b/src/doc/rustc-dev-guide/src/mir/index.md index b90c5ad83b7..20cbf75d22a 100644 --- a/src/doc/rustc-dev-guide/src/mir/index.md +++ b/src/doc/rustc-dev-guide/src/mir/index.md @@ -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 acessed in the code. +This happens because 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. |
