Functions

constness 🔒
Checks whether an item is considered to be const. If it is a constructor, it is const. If it is a trait impl/function, return if it has a const modifier. If it is an intrinsic, report whether said intrinsic has a rustc_const_{un,}stable attribute. Otherwise, return Constness::NotConst.
Whether the def_id is an unstable const fn and what feature gate is necessary to enable it