diff --git a/compiler/rustc_driver/src/lib.rs b/compiler/rustc_driver/src/lib.rs index 326fefa59ab..50932d498b3 100644 --- a/compiler/rustc_driver/src/lib.rs +++ b/compiler/rustc_driver/src/lib.rs @@ -766,7 +766,7 @@ pub fn version(binary: &str, matches: &getopts::Matches) { let debug_flags = matches.opt_strs("Z"); let backend_name = debug_flags.iter().find_map(|x| { if x.starts_with("codegen-backend=") { - Some(&x["codegen-backends=".len()..]) + Some(&x["codegen-backend=".len()..]) } else { None }