@@ -506,11 +506,21 @@ run_rust_tests() {
506506 # Set Rust test environment
507507 RUST_DIR=" $ROOT /src/redisearch_rs"
508508
509+ # Set up RUSTFLAGS for warnings
510+ if [[ " $RUST_DENY_WARNS " == " 1" ]]; then
511+ export RUSTFLAGS=" ${RUSTFLAGS: +${RUSTFLAGS} } -D warnings"
512+ fi
513+
514+ # Pin a specific working version of nightly to prevent breaking the CI because
515+ # regressions in a nightly build.
516+ # Make sure to synchronize updates across all modules: Redis and RedisJSON.
517+ NIGHTLY_VERSION=" nightly-2025-07-30"
518+
509519 # Add Rust test extensions
510520 if [[ $COV == 1 ]]; then
511521 # We use the `nightly` compiler in order to include doc tests in the coverage computation.
512522 # See https://github.com/taiki-e/cargo-llvm-cov/issues/2 for more details.
513- RUST_EXTENSIONS=" +nightly llvm-cov"
523+ RUST_EXTENSIONS=" +$NIGHTLY_VERSION llvm-cov"
514524 RUST_TEST_OPTIONS="
515525 --doctests
516526 --codecov
@@ -521,8 +531,8 @@ run_rust_tests() {
521531 --ignore-filename-regex=" varint_bencher/* ,trie_bencher/* ,inverted_index_bencher/* "
522532 --output-path=$BINROOT /rust_cov.info
523533 "
524- elif [[ -n " $SAN " ]]; then # using `elif` as we shouldn't run with both
525- RUST_EXTENSIONS=" +nightly miri"
534+ elif [[ -n " $SAN " || " $RUN_MIRI " == " 1 " ]]; then # using `elif` as we shouldn't run with both
535+ RUST_EXTENSIONS=" +$NIGHTLY_VERSION miri"
526536 fi
527537
528538 # Run cargo test with the appropriate filter
0 commit comments