We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8f0abb commit 9a36824Copy full SHA for 9a36824
src/librustc_mir/const_eval/fn_queries.rs
@@ -26,8 +26,6 @@ pub fn is_const_fn(tcx: TyCtxt<'_>, def_id: DefId) -> bool {
26
27
/// Whether the `def_id` is an unstable const fn and what feature gate is necessary to enable it
28
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.
31
if tcx.is_const_fn_raw(def_id) {
32
let const_stab = tcx.lookup_const_stability(def_id)?;
33
if const_stab.level.is_unstable() { Some(const_stab.feature) } else { None }
0 commit comments