Bump dependencies

This commit is contained in:
Minseong Jang
2022-09-12 10:51:55 +09:00
parent 6e754a19bb
commit e7edf89fb3
7 changed files with 41 additions and 41 deletions

View File

@@ -13,7 +13,7 @@ use crate::ir::*;
use crate::some_or;
/// TODO(document)
#[derive(Debug, PartialEq, Error)]
#[derive(Debug, PartialEq, Eq, Error)]
pub enum DtypeError {
/// For uncommon error
#[error("{message}")]

View File

@@ -295,7 +295,7 @@ impl Value {
}
}
#[derive(Debug, PartialEq, Error)]
#[derive(Debug, PartialEq, Eq, Error)]
pub enum InterpreterError {
#[error("current block is unreachable")]
Unreachable,
@@ -313,7 +313,7 @@ pub enum InterpreterError {
},
}
#[derive(Debug, PartialEq, Clone, Copy)]
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
pub struct Pc {
pub bid: BlockId,
pub iid: usize,

View File

@@ -138,7 +138,7 @@ impl HasDtype for Declaration {
}
}
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct FunctionSignature {
pub ret: Dtype,
pub params: Vec<Dtype>,
@@ -162,7 +162,7 @@ impl HasDtype for FunctionSignature {
}
}
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct FunctionDefinition {
/// Memory allocations for local variables. The allocation is performed at the beginning of a
/// function invocation.
@@ -184,14 +184,14 @@ impl fmt::Display for BlockId {
}
}
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Block {
pub phinodes: Vec<Named<Dtype>>,
pub instructions: Vec<Named<Instruction>>,
pub exit: BlockExit,
}
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[allow(clippy::large_enum_variant)]
pub enum Instruction {
Nop,
@@ -349,7 +349,7 @@ impl fmt::Display for Instruction {
}
}
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum BlockExit {
Jump {
arg: JumpArg,
@@ -431,7 +431,7 @@ impl fmt::Display for BlockExit {
}
}
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct JumpArg {
pub bid: BlockId,
pub args: Vec<Operand>,