Skip to content

Commit

Permalink
rustc_const_eval: remove old FIXME, per review comment on previous PR
Browse files Browse the repository at this point in the history
At least one test relies on this behavior, so I think the description is still correct.
  • Loading branch information
dianne committed Oct 17, 2024
1 parent 2434969 commit 14b8556
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions compiler/rustc_const_eval/src/check_consts/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 14b8556

Please sign in to comment.