Skip to content

Commit

Permalink
refact(rivet/ast): remove unnecessary boxed attribute from some str…
Browse files Browse the repository at this point in the history
…ucts
  • Loading branch information
StunxFS committed Dec 16, 2023
1 parent 542ce20 commit 397d62e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion lib/rivet/src/ast/Decl.ri
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ pub enum Decl {
}
}

#[boxed]
pub struct EnumVariantDecl {
pub name: string;
pub mut type: Type;
Expand Down
4 changes: 0 additions & 4 deletions lib/rivet/src/ast/Expr.ri
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,6 @@ pub enum Expr < traits.Stringable {
}
}

#[boxed]
pub struct CallArg {
pub name: string;
pub mut expr: Expr;
Expand All @@ -610,7 +609,6 @@ pub struct CallArg {
pub mut type: Type;
}

#[boxed]
pub struct CallErrorHandler {
pub varname: string;
pub varname_pos: token.Pos;
Expand All @@ -622,7 +620,6 @@ pub struct CallErrorHandler {
pub pos: token.Pos;
}

#[boxed]
pub struct IfBranch {
pub mut cond: Expr;
pub mut expr: Expr;
Expand All @@ -632,7 +629,6 @@ pub struct IfBranch {
pub mut type: Type;
}

#[boxed]
pub struct MatchBranch {
pub mut patterns: []mut Expr;
pub has_var: bool;
Expand Down
1 change: 0 additions & 1 deletion lib/rivet/src/ast/TypeInfo.ri
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ pub enum TypeInfo < traits.Stringable {
}
}

#[boxed]
pub struct EnumVariant {
pub name: string;
pub value: int;
Expand Down

0 comments on commit 397d62e

Please sign in to comment.