From d09a940816910938a5d87a047b03005a76a1a82e Mon Sep 17 00:00:00 2001 From: Langston Barrett Date: Thu, 16 Mar 2023 11:13:36 -0400 Subject: [PATCH] mir-opt*-level*, not mir-opt --- src/fuzzing.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fuzzing.md b/src/fuzzing.md index e081b354..56d55f2b 100644 --- a/src/fuzzing.md +++ b/src/fuzzing.md @@ -110,8 +110,8 @@ these tools, post both the complete and minimized test cases. Generally, When fuzzing rustc, you may want to avoid generating code, since this is mostly done by LLVM. Try `--emit=mir` instead. -A variety of compiler flags can uncover different issues. `-Zmir-opt=4` will -turn on MIR optimization passes that are not run by default, potentially +A variety of compiler flags can uncover different issues. `-Zmir-opt-level=4` +will turn on MIR optimization passes that are not run by default, potentially uncovering interesting bugs. If you're fuzzing a compiler you built, you may want to build it with `-C