From 806c7281ec1905423aa4569d79940b59efc1905a Mon Sep 17 00:00:00 2001 From: Bastian Kauschke Date: Wed, 2 Dec 2020 15:38:37 +0100 Subject: add comment to `visit_ct_substs` --- compiler/rustc_infer/src/infer/combine.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'compiler/rustc_infer/src') 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), } } -- cgit 1.4.1-3-g733a5