diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-09-22 17:17:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-22 17:17:45 +0200 |
| commit | 4852e692cdfb6fab939ac172469b215bad8a0b66 (patch) | |
| tree | 9310e9fc173db58ee92a48bc3f057943aa0c2e75 | |
| parent | 090befc5e018313b16a016c8c1c55c8df5135be0 (diff) | |
| parent | 870a98c7b3bec5e0ec3432a4900d2bb6f0e1cc89 (diff) | |
Rollup merge of #146884 - Kobzol:tidy-rustdoc-modified, r=GuillaumeGomez
Fix modification check of `rustdoc-json-types` r? `@GuillaumeGomez`
| -rw-r--r-- | src/tools/tidy/src/rustdoc_json.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tools/tidy/src/rustdoc_json.rs b/src/tools/tidy/src/rustdoc_json.rs index 7a53c08737f..ade774616c7 100644 --- a/src/tools/tidy/src/rustdoc_json.rs +++ b/src/tools/tidy/src/rustdoc_json.rs @@ -17,11 +17,13 @@ pub fn check(src_path: &Path, ci_info: &crate::CiInfo, diag_ctx: DiagCtx) { }; // First we check that `src/rustdoc-json-types` was modified. - if !crate::files_modified(ci_info, |p| p == RUSTDOC_JSON_TYPES) { + if !crate::files_modified(ci_info, |p| p.starts_with(RUSTDOC_JSON_TYPES)) { // `rustdoc-json-types` was not modified so nothing more to check here. - check.verbose_msg("`rustdoc-json-types` was not modified."); return; } + + check.message("`rustdoc-json-types` modified, checking format version"); + // Then we check that if `FORMAT_VERSION` was updated, the `Latest feature:` was also updated. match crate::git_diff(base_commit, src_path.join("rustdoc-json-types")) { Some(output) => { |
