From 2d0ec174e4d9e44347ad121200b8a24f5fd1dc60 Mon Sep 17 00:00:00 2001 From: lcnr Date: Mon, 23 Oct 2023 14:48:45 +0200 Subject: [PATCH] do not fetch variance info during generalization --- compiler/rustc_infer/src/infer/generalize.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_infer/src/infer/generalize.rs b/compiler/rustc_infer/src/infer/generalize.rs index 9e24b020510..05037611262 100644 --- a/compiler/rustc_infer/src/infer/generalize.rs +++ b/compiler/rustc_infer/src/infer/generalize.rs @@ -193,7 +193,7 @@ where opt_variances, a_subst, b_subst, - true, + false, ) } }