diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 00971a6ac4..99ba122d2d 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -25,8 +25,9 @@ jobs: matrix: os: [ubuntu-latest, macos-14, windows-latest] # Don't increase beyond what Firefox is currently using: - # https://firefox-source-docs.mozilla.org/writing-rust-code/update-policy.html#schedule - rust-toolchain: [1.74.0, stable, nightly] + # https://searchfox.org/mozilla-central/search?q=MINIMUM_RUST_VERSION&path=python/mozboot/mozboot/util.py + # Keep in sync with Cargo.toml + rust-toolchain: [1.76.0, stable, nightly] type: [debug] include: - os: ubuntu-latest diff --git a/Cargo.toml b/Cargo.toml index 017918b88c..4be3ba5ad4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,8 @@ edition = "2021" license = "MIT OR Apache-2.0" # Don't increase beyond what Firefox is currently using: # https://searchfox.org/mozilla-central/search?q=MINIMUM_RUST_VERSION&path=python/mozboot/mozboot/util.py -rust-version = "1.74.0" +# Keep in sync with .github/workflows/check.yml +rust-version = "1.76.0" [workspace.dependencies] log = { version = "0.4", default-features = false } diff --git a/neqo-crypto/src/agentio.rs b/neqo-crypto/src/agentio.rs index 7c57a0ef45..3beede5c12 100644 --- a/neqo-crypto/src/agentio.rs +++ b/neqo-crypto/src/agentio.rs @@ -29,7 +29,7 @@ const PR_FAILURE: PrStatus = prio::PRStatus::PR_FAILURE; /// Convert a pinned, boxed object into a void pointer. pub fn as_c_void(pin: &mut Pin>) -> *mut c_void { - (Pin::into_inner(pin.as_mut()) as *mut T).cast() + (std::ptr::from_mut::(Pin::into_inner(pin.as_mut()))).cast() } /// A slice of the output.