From 6e576d7202a862e88bbb2dc8586b9927df4fcf0d Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Thu, 12 Feb 2026 14:30:21 -0700 Subject: [PATCH] polyval: remove `Copy` from `backend::soft::State` This is leftover from when we were storing state in a `union` and didn't want to have to deal with `ManuallyDrop` --- .github/workflows/polyval.yml | 4 +++- polyval/src/backend/soft.rs | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/polyval.yml b/.github/workflows/polyval.yml index f65af6d..1ac5450 100644 --- a/.github/workflows/polyval.yml +++ b/.github/workflows/polyval.yml @@ -177,7 +177,9 @@ jobs: - x86_64-unknown-linux-gnu steps: - uses: actions/checkout@v6 - - uses: dtolnay/rust-toolchain@nightly + - uses: dtolnay/rust-toolchain@stable + with: + toolchain: nightly-2026-02-11 # pinned due to rust-lang/miri#4855 - run: rustup component add miri && cargo miri setup - run: cargo miri test --target ${{ matrix.target }} --lib diff --git a/polyval/src/backend/soft.rs b/polyval/src/backend/soft.rs index 5e94c4f..26605fc 100644 --- a/polyval/src/backend/soft.rs +++ b/polyval/src/backend/soft.rs @@ -9,7 +9,8 @@ use crate::{Block, Key, ParBlocks, Tag, field_element::FieldElement}; use zeroize::Zeroize; /// State of a POLYVAL hash operation. -#[derive(Clone, Copy)] +#[derive(Clone)] +#[allow(missing_copy_implementations)] pub(crate) struct State { /// Hash key: fixed element of GF(2^128) that parameterizes the POLYVAL universal hash function. ///