Skip to content

Commit 38181cb

Browse files
committed
remove trait bounds on AllocBytes
1 parent 235770c commit 38181cb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: compiler/rustc_middle/src/mir/interpret/allocation.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ use provenance_map::*;
2929
pub use init_mask::{InitChunk, InitChunkIter};
3030

3131
/// 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-
{
32+
pub trait AllocBytes: Clone + fmt::Debug + Deref<Target = [u8]> + DerefMut<Target = [u8]> {
3533
/// Create an `AllocBytes` from a slice of `u8`.
3634
fn from_bytes<'a>(slice: impl Into<Cow<'a, [u8]>>, _align: Align) -> Self;
3735

0 commit comments

Comments
 (0)