Skip to main content

std_contracts_has_entry

Function std_contracts_has_entry 

Source
pub(crate) fn std_contracts_has_entry(tcx: TyCtxt<'_>, def_id: DefId) -> bool
Expand description

Whether the JSON contract database has an entry for def_id — including an empty one, which means “no safety contract is needed” (e.g. fmt::new, whose arguments are all references).