We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 235770c commit 38181cbCopy full SHA for 38181cb
compiler/rustc_middle/src/mir/interpret/allocation.rs
@@ -29,9 +29,7 @@ use provenance_map::*;
29
pub use init_mask::{InitChunk, InitChunkIter};
30
31
/// Functionality required for the bytes of an `Allocation`.
32
-pub trait AllocBytes:
33
- Clone + fmt::Debug + Eq + PartialEq + Hash + Deref<Target = [u8]> + DerefMut<Target = [u8]>
34
-{
+pub trait AllocBytes: Clone + fmt::Debug + Deref<Target = [u8]> + DerefMut<Target = [u8]> {
35
/// Create an `AllocBytes` from a slice of `u8`.
36
fn from_bytes<'a>(slice: impl Into<Cow<'a, [u8]>>, _align: Align) -> Self;
37
0 commit comments