Skip to content

Commit 9a36824

Browse files
Remove outdated FIXME
1 parent c8f0abb commit 9a36824

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/librustc_mir/const_eval/fn_queries.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ pub fn is_const_fn(tcx: TyCtxt<'_>, def_id: DefId) -> bool {
2626

2727
/// Whether the `def_id` is an unstable const fn and what feature gate is necessary to enable it
2828
pub fn is_unstable_const_fn(tcx: TyCtxt<'_>, def_id: DefId) -> Option<Symbol> {
29-
// FIXME: check for `rustc_const_unstable` on the containing impl. This should be done by
30-
// propagating it down so it is return by the `lookup_const_stability` query.
3129
if tcx.is_const_fn_raw(def_id) {
3230
let const_stab = tcx.lookup_const_stability(def_id)?;
3331
if const_stab.level.is_unstable() { Some(const_stab.feature) } else { None }

0 commit comments

Comments
 (0)