Skip to content

Commit cd6c0e4

Browse files
committed
Fix typo in rustc_driver::version
This caused rustc -Zcodegen-backend=foo.so -vV to look for oo.so instead of foo.so
1 parent 998cfe5 commit cd6c0e4

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_driver/src

1 file changed

+1
-1
lines changed

compiler/rustc_driver/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ pub fn version(binary: &str, matches: &getopts::Matches) {
766766
let debug_flags = matches.opt_strs("Z");
767767
let backend_name = debug_flags.iter().find_map(|x| {
768768
if x.starts_with("codegen-backend=") {
769-
Some(&x["codegen-backends=".len()..])
769+
Some(&x["codegen-backend=".len()..])
770770
} else {
771771
None
772772
}

0 commit comments

Comments
 (0)