Skip to content

Commit

Permalink
Moved format-version constant to rustdoc-json-types
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuval Dolev committed Oct 15, 2021
1 parent eeb16a2 commit 43f4ef5
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 43f4ef5

Please sign in to comment.