From 397d62e7fdc94e2c792e2ca3478fbcdd5ec50304 Mon Sep 17 00:00:00 2001 From: StunxFS Date: Sat, 16 Dec 2023 19:17:42 -0400 Subject: [PATCH] refact(rivet/ast): remove unnecessary `boxed` attribute from some structs --- lib/rivet/src/ast/Decl.ri | 1 - lib/rivet/src/ast/Expr.ri | 4 ---- lib/rivet/src/ast/TypeInfo.ri | 1 - 3 files changed, 6 deletions(-) diff --git a/lib/rivet/src/ast/Decl.ri b/lib/rivet/src/ast/Decl.ri index a231e7643..0084db9e6 100644 --- a/lib/rivet/src/ast/Decl.ri +++ b/lib/rivet/src/ast/Decl.ri @@ -180,7 +180,6 @@ pub enum Decl { } } -#[boxed] pub struct EnumVariantDecl { pub name: string; pub mut type: Type; diff --git a/lib/rivet/src/ast/Expr.ri b/lib/rivet/src/ast/Expr.ri index 57e320946..bd54f16ea 100644 --- a/lib/rivet/src/ast/Expr.ri +++ b/lib/rivet/src/ast/Expr.ri @@ -601,7 +601,6 @@ pub enum Expr < traits.Stringable { } } -#[boxed] pub struct CallArg { pub name: string; pub mut expr: Expr; @@ -610,7 +609,6 @@ pub struct CallArg { pub mut type: Type; } -#[boxed] pub struct CallErrorHandler { pub varname: string; pub varname_pos: token.Pos; @@ -622,7 +620,6 @@ pub struct CallErrorHandler { pub pos: token.Pos; } -#[boxed] pub struct IfBranch { pub mut cond: Expr; pub mut expr: Expr; @@ -632,7 +629,6 @@ pub struct IfBranch { pub mut type: Type; } -#[boxed] pub struct MatchBranch { pub mut patterns: []mut Expr; pub has_var: bool; diff --git a/lib/rivet/src/ast/TypeInfo.ri b/lib/rivet/src/ast/TypeInfo.ri index fe85cfefe..c3a7830be 100644 --- a/lib/rivet/src/ast/TypeInfo.ri +++ b/lib/rivet/src/ast/TypeInfo.ri @@ -192,7 +192,6 @@ pub enum TypeInfo < traits.Stringable { } } -#[boxed] pub struct EnumVariant { pub name: string; pub value: int;