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:
parent
998cfe5aad
commit
cd6c0e4e3b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue