Skip to content

Commit 75f730f

Browse files
authored
ci: Pin Rust nightly to 2024-02-01 (#465)
The newest Rust nightly removed the `stdsimd` feature in favor of more grained features (rust-lang/rust#117372). However, the version of `ahash` we depend on, still requires that feature. New release of `ahash` (0.8.7) contains a fix, but we can't upgrade to it without upgrading Anchor. Pinning Rust nightly seems to be the less intrusive solution for now.
1 parent f4027a5 commit 75f730f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ jobs:
6060
# here... But without that, the toolchain is just not there!
6161
# I will spend more time on debugging this once I can afford burning
6262
# more hours.
63-
rustup toolchain install nightly --component clippy,rustfmt
63+
rustup toolchain install nightly-2024-02-01 --component clippy,rustfmt
6464
./scripts/lint.sh

scripts/format.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ set -e
55
npx nx run-many --target=format --all
66
npx nx run-many --target=lint:fix --all
77

8-
cargo +nightly fmt --all
9-
cargo clippy --exclude macro-circom --all -- -A clippy::result_large_err -D warnings
8+
cargo +nightly-2024-02-01 fmt --all
9+
cargo clippy --exclude macro-circom --all -- -A clippy::result_large_err -D warnings

scripts/install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export PATH="${PREFIX}/cargo/bin:${PATH}"
178178

179179
rustup component add clippy
180180
rustup component add rustfmt
181-
rustup toolchain install nightly --component clippy,rustfmt
181+
rustup toolchain install nightly-2024-02-01 --component clippy,rustfmt
182182

183183
cargo install cargo-expand wasm-pack
184184

scripts/lint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44
npx nx run-many --target=format:check --all
55
npx nx run-many --target=lint --all
66

7-
for rust_toolchain in stable nightly; do
7+
for rust_toolchain in stable nightly-2024-02-01; do
88
cargo +"$rust_toolchain" fmt --all -- --check
99
cargo +"$rust_toolchain" clippy \
1010
--workspace \

0 commit comments

Comments
 (0)