Function rustc_query_impl::make_query::trait_of_item [−][src]
pub fn trait_of_item<'tcx>(
tcx: QueryCtxt<'tcx>,
key: trait_of_item<'tcx>
) -> QueryStackFrameExpand description
Given an associated_item, find the trait it belongs to.
Return None if the DefId is not an associated item.