Fix typo in rustc_driver::version

This caused rustc -Zcodegen-backend=foo.so -vV to look for oo.so instead of
foo.so
This commit is contained in:
bjorn3 2021-07-28 16:35:57 +02:00
parent 998cfe5aad
commit cd6c0e4e3b

View File

@ -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
}