Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
Signed-off-by: Yaroslav Bolyukin <[email protected]>
  • Loading branch information
CertainLach committed Jun 5, 2021
1 parent f1475f1 commit 10e83f0
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions crates/jrsonnet-parser/src/expr.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use gc::{Finalize, Trace};
use gc::{Finalize, Trace, unsafe_empty_trace};
use jrsonnet_interner::IStr;
#[cfg(feature = "deserialize")]
use serde::Deserialize;
Expand All @@ -21,7 +21,7 @@ pub enum FieldName {
Dyn(LocExpr),
}
impl Finalize for FieldName {}
impl Trace for FieldName {
unsafe impl Trace for FieldName {
unsafe_empty_trace!();
}

Expand All @@ -37,7 +37,7 @@ pub enum Visibility {
Unhide,
}
impl Finalize for Visibility {}
impl Trace for Visibility {
unsafe impl Trace for Visibility {
unsafe_empty_trace!();
}

Expand All @@ -52,7 +52,7 @@ impl Visibility {
#[derive(Clone, Debug, PartialEq)]
pub struct AssertStmt(pub LocExpr, pub Option<LocExpr>);
impl Finalize for AssertStmt {}
impl Trace for AssertStmt {
unsafe impl Trace for AssertStmt {
unsafe_empty_trace!();
}

Expand All @@ -67,7 +67,7 @@ pub struct FieldMember {
pub value: LocExpr,
}
impl Finalize for FieldMember {}
impl Trace for FieldMember {
unsafe impl Trace for FieldMember {
unsafe_empty_trace!();
}

Expand All @@ -80,7 +80,7 @@ pub enum Member {
AssertStmt(AssertStmt),
}
impl Finalize for Member {}
impl Trace for Member {
unsafe impl Trace for Member {
unsafe_empty_trace!();
}

Expand All @@ -94,7 +94,7 @@ pub enum UnaryOpType {
Not,
}
impl Finalize for UnaryOpType {}
impl Trace for UnaryOpType {
unsafe impl Trace for UnaryOpType {
unsafe_empty_trace!();
}

Expand Down Expand Up @@ -146,7 +146,7 @@ pub enum BinaryOpType {
Or,
}
impl Finalize for BinaryOpType {}
impl Trace for BinaryOpType {
unsafe impl Trace for BinaryOpType {
unsafe_empty_trace!();
}

Expand Down Expand Up @@ -186,7 +186,7 @@ impl Display for BinaryOpType {
#[derive(Debug, PartialEq)]
pub struct Param(pub IStr, pub Option<LocExpr>);
impl Finalize for Param {}
impl Trace for Param {
unsafe impl Trace for Param {
unsafe_empty_trace!();
}

Expand All @@ -196,7 +196,7 @@ impl Trace for Param {
#[derive(Debug, Clone, PartialEq)]
pub struct ParamsDesc(pub Rc<Vec<Param>>);
impl Finalize for ParamsDesc {}
impl Trace for ParamsDesc {
unsafe impl Trace for ParamsDesc {
unsafe_empty_trace!();
}

Expand All @@ -212,7 +212,7 @@ impl Deref for ParamsDesc {
#[derive(Debug, PartialEq)]
pub struct Arg(pub Option<String>, pub LocExpr);
impl Finalize for Arg {}
impl Trace for Arg {
unsafe impl Trace for Arg {
unsafe_empty_trace!();
}

Expand All @@ -221,7 +221,7 @@ impl Trace for Arg {
#[derive(Debug, PartialEq)]
pub struct ArgsDesc(pub Vec<Arg>);
impl Finalize for ArgsDesc {}
impl Trace for ArgsDesc {
unsafe impl Trace for ArgsDesc {
unsafe_empty_trace!();
}

Expand All @@ -241,7 +241,7 @@ pub struct BindSpec {
pub value: LocExpr,
}
impl Finalize for BindSpec {}
impl Trace for BindSpec {
unsafe impl Trace for BindSpec {
unsafe_empty_trace!();
}

Expand All @@ -250,7 +250,7 @@ impl Trace for BindSpec {
#[derive(Debug, PartialEq)]
pub struct IfSpecData(pub LocExpr);
impl Finalize for IfSpecData {}
impl Trace for IfSpecData {
unsafe impl Trace for IfSpecData {
unsafe_empty_trace!();
}

Expand All @@ -259,7 +259,7 @@ impl Trace for IfSpecData {
#[derive(Debug, PartialEq)]
pub struct ForSpecData(pub IStr, pub LocExpr);
impl Finalize for ForSpecData {}
impl Trace for ForSpecData {
unsafe impl Trace for ForSpecData {
unsafe_empty_trace!();
}

Expand All @@ -271,7 +271,7 @@ pub enum CompSpec {
ForSpec(ForSpecData),
}
impl Finalize for CompSpec {}
impl Trace for CompSpec {
unsafe impl Trace for CompSpec {
unsafe_empty_trace!();
}

Expand All @@ -286,7 +286,7 @@ pub struct ObjComp {
pub compspecs: Vec<CompSpec>,
}
impl Finalize for ObjComp {}
impl Trace for ObjComp {
unsafe impl Trace for ObjComp {
unsafe_empty_trace!();
}

Expand All @@ -298,7 +298,7 @@ pub enum ObjBody {
ObjComp(ObjComp),
}
impl Finalize for ObjBody {}
impl Trace for ObjBody {
unsafe impl Trace for ObjBody {
unsafe_empty_trace!();
}

Expand All @@ -314,7 +314,7 @@ pub enum LiteralType {
False,
}
impl Finalize for LiteralType {}
impl Trace for LiteralType {
unsafe impl Trace for LiteralType {
unsafe_empty_trace!();
}

Expand All @@ -325,7 +325,7 @@ pub struct SliceDesc {
pub step: Option<LocExpr>,
}
impl Finalize for SliceDesc {}
impl Trace for SliceDesc {
unsafe impl Trace for SliceDesc {
unsafe_empty_trace!();
}

Expand Down Expand Up @@ -397,7 +397,7 @@ pub enum Expr {
},
}
impl Finalize for Expr {}
impl Trace for Expr {
unsafe impl Trace for Expr {
unsafe_empty_trace!();
}

Expand All @@ -407,7 +407,7 @@ impl Trace for Expr {
#[derive(Clone, PartialEq)]
pub struct ExprLocation(pub Rc<PathBuf>, pub usize, pub usize);
impl Finalize for ExprLocation {}
impl Trace for ExprLocation {
unsafe impl Trace for ExprLocation {
unsafe_empty_trace!();
}

Expand All @@ -423,7 +423,7 @@ impl Debug for ExprLocation {
#[derive(Clone, PartialEq)]
pub struct LocExpr(pub Rc<Expr>, pub Option<ExprLocation>);
impl Finalize for LocExpr {}
impl Trace for LocExpr {
unsafe impl Trace for LocExpr {
unsafe_empty_trace!();
}

Expand Down

0 comments on commit 10e83f0

Please sign in to comment.