Skip to content

Commit af1262b

Browse files
authored
aead: remove broken dyn-compatibility tests (#2289)
The "tests" fail on Nightly and did nothing on existing stable toolchains. It looks like specifying prefix using associated constants completely breaks dyn-compatibility since it's currently impossible to pin associated constant in the same way as we do with associated types. I will open a separate issue to discuss how to fix dyn-compatibility.
1 parent 2c19321 commit af1262b

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

aead/src/lib.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -484,17 +484,3 @@ impl<const N: usize> Buffer for arrayvec::ArrayVec<u8, N> {
484484
arrayvec::ArrayVec::truncate(self, len);
485485
}
486486
}
487-
488-
#[cfg(test)]
489-
mod tests {
490-
use super::*;
491-
492-
/// Ensure that `Aead` is `dyn`-compatible
493-
#[cfg(feature = "alloc")]
494-
#[allow(dead_code)]
495-
type DynAead<N, T> = dyn Aead<NonceSize = N, TagSize = T>;
496-
497-
/// Ensure that `AeadInOut` is `dyn`-compatible
498-
#[allow(dead_code)]
499-
type DynAeadInOut<N, T> = dyn AeadInOut<NonceSize = N, TagSize = T>;
500-
}

0 commit comments

Comments
 (0)