Module rustc_const_eval::const_eval::fn_queries
source ยท Functionsยง
- constness ๐Checks whether an item is considered to be
const
. If it is a constructor, anonymous const, const block, const item or associated const, it is const. If it is a trait impl/function, return if it has aconst
modifier. If it is an intrinsic, report whether said intrinsic has arustc_const_{un,}stable
attribute. Otherwise, returnConstness::NotConst
. - Whether the
def_id
is an unstable const fn and what feature gate(s) are necessary to enable it.