Skip to content

Commit 6cc0acb

Browse files
committed
Bump toolchain to 1.76.0
We also need to fix the sqlite-bundled job to the yesterday nightly due to rust-lang/rust#120830
1 parent dfeec4b commit 6cc0acb

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ jobs:
420420
runs-on: ubuntu-latest
421421
steps:
422422
- uses: actions/checkout@v4
423-
- uses: dtolnay/rust-toolchain@nightly
423+
- uses: dtolnay/rust-toolchain@nightly-2024-02-08
424424
with:
425425
components: "rust-src"
426426
- name: Cache cargo registry
@@ -429,20 +429,20 @@ jobs:
429429
key: sqlite_bundled-cargo-${{ hashFiles('**/Cargo.toml') }}
430430

431431
- name: Test diesel-cli
432-
run: cargo +nightly test --manifest-path diesel_cli/Cargo.toml --no-default-features --features "sqlite-bundled"
432+
run: cargo +nightly-2024-02-08 test --manifest-path diesel_cli/Cargo.toml --no-default-features --features "sqlite-bundled"
433433

434434
- name: Run diesel_tests with ASAN enabled
435435
env:
436436
RUSTFLAGS: -Zsanitizer=address
437437
ASAN_OPTIONS: detect_stack_use_after_return=1
438-
run: cargo +nightly -Z build-std test --manifest-path diesel_tests/Cargo.toml --no-default-features --features "sqlite libsqlite3-sys libsqlite3-sys/bundled libsqlite3-sys/with-asan" --target x86_64-unknown-linux-gnu
438+
run: cargo +nightly-2024-02-08 -Z build-std test --manifest-path diesel_tests/Cargo.toml --no-default-features --features "sqlite libsqlite3-sys libsqlite3-sys/bundled libsqlite3-sys/with-asan" --target x86_64-unknown-linux-gnu
439439

440440
- name: Run diesel tests with ASAN enabled
441441
env:
442442
RUSTDOCFLAGS: -Zsanitizer=address
443443
RUSTFLAGS: -Zsanitizer=address
444444
ASAN_OPTIONS: detect_stack_use_after_return=1
445-
run: cargo +nightly -Z build-std test --manifest-path diesel/Cargo.toml --no-default-features --features "sqlite extras libsqlite3-sys libsqlite3-sys/bundled libsqlite3-sys/with-asan" --target x86_64-unknown-linux-gnu
445+
run: cargo +nightly-2024-02-08 -Z build-std test --manifest-path diesel/Cargo.toml --no-default-features --features "sqlite extras libsqlite3-sys libsqlite3-sys/bundled libsqlite3-sys/with-asan" --target x86_64-unknown-linux-gnu
446446

447447
minimal_rust_version:
448448
name: Check Minimal supported rust version (1.70.0)

diesel/src/pg/types/json.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,13 @@ impl ToSql<sql_types::Jsonb, Pg> for serde_json::Value {
4646
}
4747
}
4848

49-
#[cfg(tests)]
49+
#[cfg(test)]
5050
mod tests {
51-
use crate::query_builder::bind_types::ByteWrapper;
51+
use crate::deserialize::FromSql;
52+
use crate::pg::{Pg, PgValue};
53+
use crate::query_builder::bind_collector::ByteWrapper;
54+
use crate::serialize::{Output, ToSql};
55+
use crate::sql_types;
5256

5357
#[test]
5458
fn json_to_sql() {

rust-toolchain

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.75.0
1+
1.76.0

0 commit comments

Comments
 (0)