pub(crate) fn write_shared( cx: &mut Context<'_>, krate: &Crate, opt: &RenderOptions, tcx: TyCtxt<'_>, ) -> Result<(), Error>