Skip to content

Commit 870a98c

Browse files
committed
Fix modification check of rustdoc-json-types
1 parent 9f32ccf commit 870a98c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/tools/tidy/src/rustdoc_json.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ pub fn check(src_path: &Path, ci_info: &crate::CiInfo, diag_ctx: DiagCtx) {
1717
};
1818

1919
// First we check that `src/rustdoc-json-types` was modified.
20-
if !crate::files_modified(ci_info, |p| p == RUSTDOC_JSON_TYPES) {
20+
if !crate::files_modified(ci_info, |p| p.starts_with(RUSTDOC_JSON_TYPES)) {
2121
// `rustdoc-json-types` was not modified so nothing more to check here.
22-
check.verbose_msg("`rustdoc-json-types` was not modified.");
2322
return;
2423
}
24+
25+
check.message("`rustdoc-json-types` modified, checking format version");
26+
2527
// Then we check that if `FORMAT_VERSION` was updated, the `Latest feature:` was also updated.
2628
match crate::git_diff(base_commit, src_path.join("rustdoc-json-types")) {
2729
Some(output) => {

0 commit comments

Comments
 (0)