Skip to content

Commit 14b8556

Browse files
committed
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.
1 parent 2434969 commit 14b8556

File tree

1 file changed

+2
-3
lines changed
  • compiler/rustc_const_eval/src/check_consts

1 file changed

+2
-3
lines changed

compiler/rustc_const_eval/src/check_consts/check.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -741,9 +741,8 @@ impl<'tcx> Visitor<'tcx> for Checker<'_, 'tcx> {
741741
self.check_op(ops::FnCallUnstable(callee, bad_gates));
742742
}
743743
} else {
744-
// FIXME(ecstaticmorse); For compatibility, we consider `unstable` callees that
745-
// have no `rustc_const_stable` attributes to be const-unstable as well. This
746-
// should be fixed later.
744+
// For compatibility, we consider `unstable` callees that have no
745+
// `rustc_const_stable` attributes to be const-unstable as well.
747746
let callee_is_unstable_unmarked = tcx.lookup_const_stability(callee).is_none()
748747
&& tcx.lookup_stability(callee).is_some_and(|s| s.is_unstable());
749748
if callee_is_unstable_unmarked {

0 commit comments

Comments
 (0)