We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e56b5ee + 43f4ef5 commit e98669aCopy full SHA for e98669a
src/librustdoc/json/mod.rs
@@ -255,7 +255,7 @@ impl<'tcx> FormatRenderer<'tcx> for JsonRenderer<'tcx> {
255
)
256
})
257
.collect(),
258
- format_version: 9,
+ format_version: types::FORMAT_VERSION,
259
};
260
let mut p = self.out_path.clone();
261
p.push(output.index.get(&output.root).unwrap().name.clone().unwrap());
src/rustdoc-json-types/lib.rs
@@ -510,5 +510,8 @@ pub struct Static {
510
pub expr: String,
511
}
512
513
+/// rustdoc format-version.
514
+pub const FORMAT_VERSION: u32 = 9;
515
+
516
#[cfg(test)]
517
mod tests;
0 commit comments