Skip to content

Commit

Permalink
remove trait bounds on AllocBytes
Browse files Browse the repository at this point in the history
  • Loading branch information
Strophox committed May 3, 2024
1 parent 235770c commit 7acd51e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_middle/src/mir/interpret/allocation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ 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]>
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;
Expand Down

0 comments on commit 7acd51e

Please sign in to comment.