Skip to content

Commit

Permalink
Rollup merge of rust-lang#89906 - yuvaldolev:move-format-version-to-r…
Browse files Browse the repository at this point in the history
…ustdoc-json-types, r=CraftSpider

Moved format-version constant to rustdoc-json-types

Addresses rust-lang#88620

Moved format-version constant from rustdoc to rustdoc-json-types.
  • Loading branch information
jackh726 committed Oct 16, 2021
2 parents d3577b1 + 43f4ef5 commit c81cbb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/json/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
3 changes: 3 additions & 0 deletions src/rustdoc-json-types/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -510,5 +510,8 @@ pub struct Static {
pub expr: String,
}

/// rustdoc format-version.
pub const FORMAT_VERSION: u32 = 9;

#[cfg(test)]
mod tests;

0 comments on commit c81cbb1

Please sign in to comment.