diff --git a/src/asm/mod.rs b/src/asm/mod.rs index 9fff147..5fe3f0e 100644 --- a/src/asm/mod.rs +++ b/src/asm/mod.rs @@ -4,22 +4,22 @@ use crate::ir; use core::convert::TryFrom; -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct Todo {} /// TODO -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct Asm { pub unit: TranslationUnit, } -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct TranslationUnit { pub functions: Vec>, pub variables: Vec>, } -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct Section { /// Section Headers provice size, offset, type, alignment and flags of the sections /// https://github.com/rv8-io/rv8-io.github.io/blob/master/asm.md#section-header @@ -36,7 +36,7 @@ impl Section { } } -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct Function { pub blocks: Vec, } @@ -47,7 +47,7 @@ impl Function { } } -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct Variable { pub label: Label, pub directives: Vec, @@ -59,7 +59,7 @@ impl Variable { } } -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct Block { pub label: Option