pub fn writer_for_item( tcx: TyCtxt<'_>, def_id: DefId, ext: impl AsRef<str>, ) -> Result<impl Write>