Skip to content

Commit 45f5f34

Browse files
authored
Rollup merge of #93132 - Urgau:fix-rustdoc-json-format-version, r=oli-obk
Increase the format version of rustdoc-json-types PR #87648 changed `rustdoc-json-types` without increasing the format version. e7529d6#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.
2 parents 2ecbc4b + 1521b53 commit 45f5f34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rustdoc-json-types/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ use std::path::PathBuf;
88

99
use serde::{Deserialize, Serialize};
1010

11+
/// rustdoc format-version.
12+
pub const FORMAT_VERSION: u32 = 10;
13+
1114
/// A `Crate` is the root of the emitted JSON blob. It contains all type/documentation information
1215
/// about the language items in the local crate, as well as info about external items to allow
1316
/// tools to find or link to them.
@@ -517,8 +520,5 @@ pub struct Static {
517520
pub expr: String,
518521
}
519522

520-
/// rustdoc format-version.
521-
pub const FORMAT_VERSION: u32 = 9;
522-
523523
#[cfg(test)]
524524
mod tests;

0 commit comments

Comments
 (0)