about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2021-05-29 17:38:06 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2021-06-04 13:20:05 +0200
commit7d5c79497ce4cfeb3a29c74d3ad646a1a4117369 (patch)
tree5de2f42a6b0af119bc98541d9984174298d8ba3e
parente30490d5b2e03e8e324c336dc2daf3c5fc1cbf59 (diff)
downloadrust-7d5c79497ce4cfeb3a29c74d3ad646a1a4117369.tar.gz
rust-7d5c79497ce4cfeb3a29c74d3ad646a1a4117369.zip
Rustfmt
-rw-r--r--compiler/rustc_driver/src/lib.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/rustc_driver/src/lib.rs b/compiler/rustc_driver/src/lib.rs
index 5d2bf0a45ef..b943977e4c2 100644
--- a/compiler/rustc_driver/src/lib.rs
+++ b/compiler/rustc_driver/src/lib.rs
@@ -1068,7 +1068,11 @@ pub fn handle_options(args: &[String]) -> Option<getopts::Matches> {
 
     if cg_flags.iter().any(|x| *x == "passes=list") {
         let backend_name = debug_flags.iter().find_map(|x| {
-            if x.starts_with("codegen-backend=") { Some(&x["codegen-backends=".len()..]) } else { None }
+            if x.starts_with("codegen-backend=") {
+                Some(&x["codegen-backends=".len()..])
+            } else {
+                None
+            }
         });
         get_codegen_backend(&None, backend_name).print_passes();
         return None;