fn impl_constness(tcx: TyCtxt<'_>, def_id: DefId) -> Constness
Expand description

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.