From a35a2fc829c373eef963355ba2f1dcb792ceb5a5 Mon Sep 17 00:00:00 2001 From: can1357 Date: Sat, 28 Mar 2026 14:28:24 +0100 Subject: [PATCH] fix: pin rustc-hash to 2.1.1 to avoid SIGILL on CI rustc-hash 2.1.2 (released today) refactored hash_bytes to use split_first_chunk, which produces illegal instructions when compiled with nightly + -C target-cpu=x86-64-v3 on CI runners. --- Cargo.lock | 10 +++++----- Cargo.toml | 3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6750cc080..30633790d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1132,7 +1132,7 @@ dependencies = [ "fluent-syntax", "intl-memoizer", "intl_pluralrules", - "rustc-hash 2.1.2", + "rustc-hash 2.1.1", "self_cell", "smallvec", "unic-langid", @@ -2117,7 +2117,7 @@ dependencies = [ "napi-build", "napi-sys", "nohash-hasher", - "rustc-hash 2.1.2", + "rustc-hash 2.1.1", "tokio", ] @@ -3140,9 +3140,9 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" [[package]] name = "rustc-hash" -version = "2.1.2" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe" +checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" [[package]] name = "rustix" @@ -4198,7 +4198,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cb30dbbd9036155e74adad6812e9898d03ec374946234fbcebd5dfc7b9187b90" dependencies = [ - "rustc-hash 2.1.2", + "rustc-hash 2.1.1", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index a3da07242..89b85241e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,6 +14,9 @@ repository = "https://github.com/can1357/oh-my-pi" brush-core = { path = "crates/brush-core-vendored" } brush-builtins = { path = "crates/brush-builtins-vendored" } +[workspace.dependencies] +rustc-hash = "=2.1.1" + [profile.release] opt-level = 3 lto = "fat"