@@ -53,7 +53,7 @@ impl ExpressionId {
5353/// but the zero/counter/expression distinction is also useful for representing
5454/// the value of code/gap mappings, and the true/false arms of branch mappings.
5555#[ derive( Copy , Clone , PartialEq , Eq ) ]
56- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
56+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
5757pub enum CovTerm {
5858 Zero ,
5959 Counter ( CounterId ) ,
@@ -70,7 +70,7 @@ impl Debug for CovTerm {
7070 }
7171}
7272
73- #[ derive( Clone , PartialEq , TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
73+ #[ derive( Clone , PartialEq , TyEncodable , TyDecodable , Hash , HashStable ) ]
7474pub enum CoverageKind {
7575 /// Marks the point in MIR control flow represented by a coverage counter.
7676 ///
@@ -102,7 +102,6 @@ impl Debug for CoverageKind {
102102}
103103
104104#[ derive( Clone , TyEncodable , TyDecodable , Hash , HashStable , PartialEq , Eq , PartialOrd , Ord ) ]
105- #[ derive( TypeFoldable , TypeVisitable ) ]
106105pub struct CodeRegion {
107106 pub file_name : Symbol ,
108107 pub start_line : u32 ,
@@ -122,7 +121,6 @@ impl Debug for CodeRegion {
122121}
123122
124123#[ derive( Copy , Clone , Debug , PartialEq , TyEncodable , TyDecodable , Hash , HashStable ) ]
125- #[ derive( TypeFoldable , TypeVisitable ) ]
126124pub enum Op {
127125 Subtract ,
128126 Add ,
@@ -139,15 +137,15 @@ impl Op {
139137}
140138
141139#[ derive( Clone , Debug ) ]
142- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
140+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
143141pub struct Expression {
144142 pub lhs : CovTerm ,
145143 pub op : Op ,
146144 pub rhs : CovTerm ,
147145}
148146
149147#[ derive( Clone , Debug ) ]
150- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
148+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
151149pub struct Mapping {
152150 pub code_region : CodeRegion ,
153151
@@ -164,7 +162,7 @@ pub struct Mapping {
164162/// to be used in conjunction with the individual coverage statements injected
165163/// into the function's basic blocks.
166164#[ derive( Clone , Debug ) ]
167- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
165+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
168166pub struct FunctionCoverageInfo {
169167 pub function_source_hash : u64 ,
170168 pub num_counters : usize ,
0 commit comments