[−][src]Module rustc_mir::const_eval::fn_queries

Functions

is_const_fn

Whether the def_id counts as const fn in your current crate, considering all active feature gates

is_const_fn_raw

Checks whether the function has a const modifier or, in case it is an intrinsic, whether said intrinsic has a rustc_const_{un,}stable attribute.

is_const_impl_raw

Checks whether the given item is an impl that has a const modifier.

is_min_const_fn

Returns true if this function must conform to min_const_fn

is_parent_const_impl_raw
is_promotable_const_fn
is_unstable_const_fn

Whether the def_id is an unstable const fn and what feature gate is necessary to enable it

provide