pub(crate) fn get_item_path(
tcx: TyCtxt<'_>,
def_id: DefId,
kind: ItemType,
) -> Vec<Symbol>Expand description
Get the public Rust path to an item. This is used to generate the URL to the item’s page.
In particular: we handle macro differently: if it’s not a macro 2.0 oe a built-in macro, then
it is generated at the top-level of the crate and its path will be [crate_name, macro_name].