about summary refs log tree commit diff
path: root/compiler/rustc_infer/src
diff options
context:
space:
mode:
authorBastian Kauschke <bastian_kauschke@hotmail.de>2020-12-02 15:38:37 +0100
committerBastian Kauschke <bastian_kauschke@hotmail.de>2020-12-02 16:41:01 +0100
commit806c7281ec1905423aa4569d79940b59efc1905a (patch)
tree6fea763d38f0ed43b1d2429f85699d6ee1218bca /compiler/rustc_infer/src
parent71d75503506880efa89c902465cdcb205d0eb9e5 (diff)
downloadrust-806c7281ec1905423aa4569d79940b59efc1905a.tar.gz
rust-806c7281ec1905423aa4569d79940b59efc1905a.zip
add comment to `visit_ct_substs`
Diffstat (limited to 'compiler/rustc_infer/src')
-rw-r--r--compiler/rustc_infer/src/infer/combine.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_infer/src/infer/combine.rs b/compiler/rustc_infer/src/infer/combine.rs
index 594e2c6205f..987380304d2 100644
--- a/compiler/rustc_infer/src/infer/combine.rs
+++ b/compiler/rustc_infer/src/infer/combine.rs
@@ -881,9 +881,7 @@ impl TypeRelation<'tcx> for ConstInferUnifier<'_, 'tcx> {
                     }
                 }
             }
-            ty::Infer(ty::IntVar(_) | ty::FloatVar(_)) => {
-                Ok(t)
-            }
+            ty::Infer(ty::IntVar(_) | ty::FloatVar(_)) => Ok(t),
             _ => relate::super_relate_tys(self, t, t),
         }
     }