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