rustc_incremental/persist/data.rs
1//! The data that we will serialize and deserialize.
2
3use rustc_macros::{Decodable, Encodable};
4use rustc_middle::dep_graph::{WorkProduct, WorkProductId};
5
6#[derive(Debug, Encodable, Decodable)]
7pub(crate) struct SerializedWorkProduct {
8 /// node that produced the work-product
9 pub id: WorkProductId,
10
11 /// work-product data itself
12 pub work_product: WorkProduct,
13}