Skip to content

Commit f47bc8c

Browse files
authored
polyval: remove Copy from backend::soft::State (#307)
This is leftover from when we were storing state in a `union` and didn't want to have to deal with `ManuallyDrop`
1 parent ab2023c commit f47bc8c

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/polyval.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,9 @@ jobs:
177177
- x86_64-unknown-linux-gnu
178178
steps:
179179
- uses: actions/checkout@v6
180-
- uses: dtolnay/rust-toolchain@nightly
180+
- uses: dtolnay/rust-toolchain@stable
181+
with:
182+
toolchain: nightly-2026-02-11 # pinned due to rust-lang/miri#4855
181183
- run: rustup component add miri && cargo miri setup
182184
- run: cargo miri test --target ${{ matrix.target }} --lib
183185

polyval/src/backend/soft.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ use crate::{Block, Key, ParBlocks, Tag, field_element::FieldElement};
99
use zeroize::Zeroize;
1010

1111
/// State of a POLYVAL hash operation.
12-
#[derive(Clone, Copy)]
12+
#[derive(Clone)]
13+
#[allow(missing_copy_implementations)]
1314
pub(crate) struct State {
1415
/// Hash key: fixed element of GF(2^128) that parameterizes the POLYVAL universal hash function.
1516
///

0 commit comments

Comments
 (0)