Skip to content

Commit

Permalink
allow dead code in test
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidaniel committed Oct 22, 2024
1 parent a02988e commit 4d7d36f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rust/tests/disjoint_union_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use sparta::datatype::AbstractDomain;
use sparta::datatype::DisjointUnion;
use sparta::datatype::HashSetAbstractDomain;

#[allow(dead_code)]
#[derive(Clone, DisjointUnion, PartialEq, Eq)]
enum MyUnionedDomain {
FirstCase(HashSetAbstractDomain<i32>),
Expand Down Expand Up @@ -119,6 +120,7 @@ fn test_meet_diff_arm() {
assert!(met_mudom.is_bottom());
}

#[allow(dead_code)]
#[derive(Clone, DisjointUnion, PartialEq, Eq)]
enum TestGenericsDeriveTypechecks<S, T>
where
Expand All @@ -129,6 +131,7 @@ where
SecondCase(HashSetAbstractDomain<T>),
}

#[allow(dead_code)]
#[derive(Clone, DisjointUnion, PartialEq, Eq)]
enum TestGenericsDeriveForWholeDomainTypechecks<S: AbstractDomain, T>
where
Expand Down

0 comments on commit 4d7d36f

Please sign in to comment.