From b9db43959e4ee507f157af3f38d1fa3f6e6899fe Mon Sep 17 00:00:00 2001 From: dianne Date: Thu, 17 Oct 2024 01:04:40 -0700 Subject: [PATCH] rustc_const_eval: remove old FIXME, per review comment on previous PR At least one test relies on this behavior, so I think the description is still correct. --- compiler/rustc_const_eval/src/check_consts/check.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/compiler/rustc_const_eval/src/check_consts/check.rs b/compiler/rustc_const_eval/src/check_consts/check.rs index 3f9c57404843..1af8846cfdd5 100644 --- a/compiler/rustc_const_eval/src/check_consts/check.rs +++ b/compiler/rustc_const_eval/src/check_consts/check.rs @@ -741,9 +741,8 @@ impl<'tcx> Visitor<'tcx> for Checker<'_, 'tcx> { self.check_op(ops::FnCallUnstable(callee, bad_gates)); } } else { - // FIXME(ecstaticmorse); For compatibility, we consider `unstable` callees that - // have no `rustc_const_stable` attributes to be const-unstable as well. This - // should be fixed later. + // For compatibility, we consider `unstable` callees that have no + // `rustc_const_stable` attributes to be const-unstable as well. let callee_is_unstable_unmarked = tcx.lookup_const_stability(callee).is_none() && tcx.lookup_stability(callee).is_some_and(|s| s.is_unstable()); if callee_is_unstable_unmarked {