From c8113266c750edda9a56bcb4f5e79f1ac24b419b Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Fri, 8 Sep 2023 12:57:33 +0200 Subject: [PATCH] typo --- src/mir/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mir/index.md b/src/mir/index.md index b90c5ad8..20cbf75d 100644 --- a/src/mir/index.md +++ b/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.