mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
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
@ -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…
Reference in New Issue
Block a user