Moved format-version constant to rustdoc-json-types

This commit is contained in:
Yuval Dolev 2021-10-15 12:27:42 +03:00
parent eeb16a2a89
commit 43f4ef5c6a
2 changed files with 4 additions and 1 deletions

View File

@ -255,7 +255,7 @@ impl<'tcx> FormatRenderer<'tcx> for JsonRenderer<'tcx> {
)
})
.collect(),
format_version: 9,
format_version: types::FORMAT_VERSION,
};
let mut p = self.out_path.clone();
p.push(output.index.get(&output.root).unwrap().name.clone().unwrap());

View File

@ -510,5 +510,8 @@ pub struct Static {
pub expr: String,
}
/// rustdoc format-version.
pub const FORMAT_VERSION: u32 = 9;
#[cfg(test)]
mod tests;