Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tasks/ast_tools/src/schema/extensions/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::schema::{
};

/// The layout of a type.
#[derive(Clone, Default, Debug)]
#[derive(Clone, Default, PartialEq, Eq, Debug)]
pub struct Layout {
/// Layout on 64-bit platforms
pub layout_64: PlatformLayout,
Expand Down Expand Up @@ -57,7 +57,7 @@ impl Layout {
}

/// The layout of a type on a specific platform type (64 bit or 32 bit).
#[derive(Clone, Default, Debug)]
#[derive(Clone, Default, PartialEq, Eq, Debug)]
pub struct PlatformLayout {
pub size: u32,
pub align: u32,
Expand All @@ -77,7 +77,7 @@ impl PlatformLayout {
}

/// Niche that a type has.
#[derive(Clone, Debug)]
#[derive(Clone, PartialEq, Eq, Debug)]
pub struct Niche {
/// Byte offset of the niche from start of type
pub offset: u32,
Expand Down
Loading