Rollup merge of #93132 - Urgau:fix-rustdoc-json-format-version, r=oli-obk

Increase the format version of rustdoc-json-types

PR https://github.com/rust-lang/rust/pull/87648 changed `rustdoc-json-types` without increasing the format version.
e7529d6a38 (diff-ede26372490522288745c5b3df2b6b2a1cc913dcd09b29af3a49935afe00c7e6)

This PR increase the format version by +1 and move the `FORMAT_VERSION` constant to the start of the file to hopefully make it more clear that `rustdoc-json-types` is versioned.
This commit is contained in:
Matthias Krüger 2022-01-22 15:32:52 +01:00 committed by GitHub
commit 45f5f34293
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,9 @@ use std::path::PathBuf;
use serde::{Deserialize, Serialize};
/// rustdoc format-version.
pub const FORMAT_VERSION: u32 = 10;
/// A `Crate` is the root of the emitted JSON blob. It contains all type/documentation information
/// about the language items in the local crate, as well as info about external items to allow
/// tools to find or link to them.
@ -517,8 +520,5 @@ pub struct Static {
pub expr: String,
}
/// rustdoc format-version.
pub const FORMAT_VERSION: u32 = 9;
#[cfg(test)]
mod tests;