fn is_unnamable(tcx: TyCtxt<'_>, did: DefId) -> bool
Checks if the given defid refers to an item that is unnamable, such as one defined in a const block.