core: more derive Debug in typedef

This commit is contained in:
lyken 2024-06-25 15:02:50 +08:00
parent 74096eb9f6
commit 144a3fc426
1 changed files with 3 additions and 3 deletions

View File

@ -82,14 +82,14 @@ pub struct Call {
pub loc: Option<Location>, pub loc: Option<Location>,
} }
#[derive(Clone)] #[derive(Debug, Clone)]
pub struct FuncArg { pub struct FuncArg {
pub name: StrRef, pub name: StrRef,
pub ty: Type, pub ty: Type,
pub default_value: Option<SymbolValue>, pub default_value: Option<SymbolValue>,
} }
#[derive(Clone)] #[derive(Debug, Clone)]
pub struct FunSignature { pub struct FunSignature {
pub args: Vec<FuncArg>, pub args: Vec<FuncArg>,
pub ret: Type, pub ret: Type,
@ -166,7 +166,7 @@ impl RecordField {
} }
/// Category of variable and value types. /// Category of variable and value types.
#[derive(Clone)] #[derive(Debug, Clone)]
pub enum TypeEnum { pub enum TypeEnum {
TRigidVar { TRigidVar {
id: TypeVarId, id: TypeVarId,