about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorStrophox <strophox@gmail.com>2024-05-03 14:56:42 +0200
committerStrophox <strophox@gmail.com>2024-05-03 15:00:37 +0200
commit38181cba79e8a711e409ca04b9780ef6243aa4fe (patch)
tree72ac3280c20b4fa26556fc95c1a87647fad0f726 /compiler
parent235770c851513dd61d2af92d8b4b969385c55f9a (diff)
downloadrust-38181cba79e8a711e409ca04b9780ef6243aa4fe.tar.gz
rust-38181cba79e8a711e409ca04b9780ef6243aa4fe.zip
remove trait bounds on AllocBytes
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_middle/src/mir/interpret/allocation.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_middle/src/mir/interpret/allocation.rs b/compiler/rustc_middle/src/mir/interpret/allocation.rs
index 8b8101f3d1f..791e87735f4 100644
--- a/compiler/rustc_middle/src/mir/interpret/allocation.rs
+++ b/compiler/rustc_middle/src/mir/interpret/allocation.rs
@@ -29,9 +29,7 @@ use provenance_map::*;
 pub use init_mask::{InitChunk, InitChunkIter};
 
 /// Functionality required for the bytes of an `Allocation`.
-pub trait AllocBytes:
-    Clone + fmt::Debug + Eq + PartialEq + Hash + Deref<Target = [u8]> + DerefMut<Target = [u8]>
-{
+pub trait AllocBytes: Clone + fmt::Debug + Deref<Target = [u8]> + DerefMut<Target = [u8]> {
     /// Create an `AllocBytes` from a slice of `u8`.
     fn from_bytes<'a>(slice: impl Into<Cow<'a, [u8]>>, _align: Align) -> Self;