diff options
| author | Strophox <strophox@gmail.com> | 2024-05-03 14:56:42 +0200 |
|---|---|---|
| committer | Strophox <strophox@gmail.com> | 2024-05-03 15:00:37 +0200 |
| commit | 38181cba79e8a711e409ca04b9780ef6243aa4fe (patch) | |
| tree | 72ac3280c20b4fa26556fc95c1a87647fad0f726 /compiler | |
| parent | 235770c851513dd61d2af92d8b4b969385c55f9a (diff) | |
| download | rust-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.rs | 4 |
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; |
