about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2021-07-28 16:35:57 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2021-07-28 16:36:01 +0200
commitcd6c0e4e3b71cffd6e577146cbf989ad6ba29c63 (patch)
treec08975e55964ebef97026858d40b8e146b0c987d
parent998cfe5aad7c21eb19a4bca50f05a13354706970 (diff)
downloadrust-cd6c0e4e3b71cffd6e577146cbf989ad6ba29c63.tar.gz
rust-cd6c0e4e3b71cffd6e577146cbf989ad6ba29c63.zip
Fix typo in rustc_driver::version
This caused rustc -Zcodegen-backend=foo.so -vV to look for oo.so instead of
foo.so
-rw-r--r--compiler/rustc_driver/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
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
             }