about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2022-06-23 17:00:46 -0400
committerNiko Matsakis <niko@alum.mit.edu>2022-06-23 17:00:46 -0400
commite93e10516ecd75956d4efa030d14b198fac744ec (patch)
treeb8e01f4b89fb340d4f1bd2c449ad441518770b50
parent9118fafd40a69fc391c79924acbe08f05b091921 (diff)
downloadrust-e93e10516ecd75956d4efa030d14b198fac744ec.tar.gz
rust-e93e10516ecd75956d4efa030d14b198fac744ec.zip
run `x.py fmt`
-rw-r--r--compiler/rustc_borrowck/src/region_infer/mod.rs5
-rw-r--r--compiler/rustc_infer/src/infer/outlives/test_type_match.rs6
2 files changed, 2 insertions, 9 deletions
diff --git a/compiler/rustc_borrowck/src/region_infer/mod.rs b/compiler/rustc_borrowck/src/region_infer/mod.rs
index 33cf47c00e5..ec8ba5a7a81 100644
--- a/compiler/rustc_borrowck/src/region_infer/mod.rs
+++ b/compiler/rustc_borrowck/src/region_infer/mod.rs
@@ -1363,10 +1363,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
         }
 
         let result = self.scc_values.contains_points(sup_region_scc, sub_region_scc);
-        debug!(
-            "returning {} because of comparison between points in sup/sub",
-            result
-        );
+        debug!("returning {} because of comparison between points in sup/sub", result);
         result
     }
 
diff --git a/compiler/rustc_infer/src/infer/outlives/test_type_match.rs b/compiler/rustc_infer/src/infer/outlives/test_type_match.rs
index 645c2df341b..9f71ebae99e 100644
--- a/compiler/rustc_infer/src/infer/outlives/test_type_match.rs
+++ b/compiler/rustc_infer/src/infer/outlives/test_type_match.rs
@@ -174,11 +174,7 @@ impl<'tcx> TypeRelation<'tcx> for Match<'tcx> {
 
     #[instrument(skip(self), level = "debug")]
     fn tys(&mut self, pattern: Ty<'tcx>, value: Ty<'tcx>) -> RelateResult<'tcx, Ty<'tcx>> {
-        if pattern == value {
-            Ok(pattern)
-        } else {
-            relate::super_relate_tys(self, pattern, value)
-        }
+        if pattern == value { Ok(pattern) } else { relate::super_relate_tys(self, pattern, value) }
     }
 
     #[instrument(skip(self), level = "debug")]