about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-02-25 07:30:51 +0100
committerGitHub <noreply@github.com>2022-02-25 07:30:51 +0100
commitcff3472ef1d21ca2ed5be4c8f6444df3967c61a8 (patch)
treec7ca67c4755d5dbd82099eb9ebfefab9c1cd9ae9
parent10a43d2ab126e83807ca4554a4da72b513524dcd (diff)
parent4809a6d44f8c6a2638b5ba801164e107c3242daf (diff)
downloadrust-cff3472ef1d21ca2ed5be4c8f6444df3967c61a8.tar.gz
rust-cff3472ef1d21ca2ed5be4c8f6444df3967c61a8.zip
Rollup merge of #94341 - ChayimFriedman2:patch-1, r=Dylan-DPC
Remove a duplicate space

rustfmt doesn't format `let ... else`.
-rw-r--r--compiler/rustc_typeck/src/check/fn_ctxt/suggestions.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_typeck/src/check/fn_ctxt/suggestions.rs b/compiler/rustc_typeck/src/check/fn_ctxt/suggestions.rs
index 9e4b88e3746..8cad4fc707e 100644
--- a/compiler/rustc_typeck/src/check/fn_ctxt/suggestions.rs
+++ b/compiler/rustc_typeck/src/check/fn_ctxt/suggestions.rs
@@ -633,7 +633,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
             })
             .collect::<Result<Vec<_>, _>>();
 
-        let Ok(where_predicates) =  where_predicates else { return };
+        let Ok(where_predicates) = where_predicates else { return };
 
         // now get all predicates in the same types as the where bounds, so we can chain them
         let predicates_from_where =