From fb06686111d60e2a92a9fbdac52f84d43874bccf Mon Sep 17 00:00:00 2001 From: "open-session-submodule[bot]" <341020755+open-session-submodule[bot]@users.noreply.github.com> Date: Wed, 11 Nov 2026 14:29:53 +0100 Subject: [PATCH] Build the validation reference compiler with OCaml 5.5.2 The Rust message formatter follows the break sizing of OCaml 5.5's Format (4ac5138c5d), and ci.yml builds the compiler with OCaml 5.5.2, but this workflow still built its reference compiler with 5.3.0. Under 5.3 a break followed directly by another break is sized with the second one's width, so the reference printed at .../repeated_module_name.res:2:8 Names must be unique in a given structure or signature. where the Rust compiler, like OCaml 5.5, prints the second line without the extra space. Diagnostic parity failed on that fixture for every commit since. Co-authored-by: Jaap Frolich Session: https://jakes-mac-mini.tail23a77e.ts.net:8443/session/os-01a1c9fa-0c5d-7912-a93b-3e7f38e53547 Signed-off-by: open-session-submodule[bot] <341020755+open-session-submodule[bot]@users.noreply.github.com> --- .github/workflows/rust-rewrite-validation.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust-rewrite-validation.yml b/.github/workflows/rust-rewrite-validation.yml index 9138a0a1ed..115cee5169 100644 --- a/.github/workflows/rust-rewrite-validation.yml +++ b/.github/workflows/rust-rewrite-validation.yml @@ -64,9 +64,11 @@ jobs: cargo build --release --locked --manifest-path rewatch/Cargo.toml ./scripts/rust_compiler_shims.sh release + # The same OCaml as ci.yml: diagnostics are laid out by OCaml's Format, + # whose break sizing changed in 5.5, and the Rust formatter follows it. - uses: ./.github/actions/setup-ocaml with: - compiler: "5.3.0" + compiler: "5.5.2" os: ubuntu-24.04 cache-prefix: opam-rewrite-validation-v1