pub(crate) fn get_std_contracts_from_json(
tcx: TyCtxt<'_>,
def_id: DefId,
) -> Option<&'static [JsonProperty]>Expand description
Looks up backup contracts for a standard-library function by its normalized path. For trait-method impls, resolves to the trait method’s path first so that all impls share the same contracts.
After exact-path lookup, strips impl-block type segments so re-exported or
impl-generic paths resolve. For example, for core::slice::<impl [T]>::as_chunks:
core::slice::<impl [T]>::as_chunks(exact)core::slice::as_chunks(impl segments stripped)