From f65e7437488ef099fe55c267afca5f4e823362e7 Mon Sep 17 00:00:00 2001 From: lcnr Date: Sat, 17 Feb 2024 00:26:57 +0100 Subject: [PATCH] add fixme --- compiler/rustc_infer/src/infer/relate/generalize.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/rustc_infer/src/infer/relate/generalize.rs b/compiler/rustc_infer/src/infer/relate/generalize.rs index 52d2661bdaff..6a96afe70836 100644 --- a/compiler/rustc_infer/src/infer/relate/generalize.rs +++ b/compiler/rustc_infer/src/infer/relate/generalize.rs @@ -451,6 +451,9 @@ where } } ty::ConstKind::Infer(InferConst::EffectVar(_)) => Ok(c), + // FIXME: Unevaluated constants are also not rigid, so the current + // approach of always relating them structurally is incomplete. + // // FIXME: remove this branch once `structurally_relate_consts` is fully // structural. ty::ConstKind::Unevaluated(ty::UnevaluatedConst { def, args }) => {