pub fn dump_item_info<T: Debug>( tcx: TyCtxt<'_>, def_id: impl Into<DefId>, ext: impl AsRef<str>, val: T, ) -> Result<()>