@@ -4,7 +4,7 @@ use std::fmt::{self, Debug, Formatter};
4
4
5
5
use rustc_index:: IndexVec ;
6
6
use rustc_index:: bit_set:: DenseBitSet ;
7
- use rustc_macros:: { HashStable , TyDecodable , TyEncodable , TypeFoldable , TypeVisitable } ;
7
+ use rustc_macros:: { HashStable , TyDecodable , TyEncodable } ;
8
8
use rustc_span:: Span ;
9
9
10
10
rustc_index:: newtype_index! {
@@ -72,7 +72,7 @@ impl ConditionId {
72
72
/// Enum that can hold a constant zero value, the ID of an physical coverage
73
73
/// counter, or the ID of a coverage-counter expression.
74
74
#[ derive( Copy , Clone , PartialEq , Eq , PartialOrd , Ord ) ]
75
- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
75
+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
76
76
pub enum CovTerm {
77
77
Zero ,
78
78
Counter ( CounterId ) ,
@@ -89,7 +89,7 @@ impl Debug for CovTerm {
89
89
}
90
90
}
91
91
92
- #[ derive( Clone , PartialEq , TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
92
+ #[ derive( Clone , PartialEq , TyEncodable , TyDecodable , Hash , HashStable ) ]
93
93
pub enum CoverageKind {
94
94
/// Marks a span that might otherwise not be represented in MIR, so that
95
95
/// coverage instrumentation can associate it with its enclosing block/BCB.
@@ -151,7 +151,7 @@ impl Debug for CoverageKind {
151
151
}
152
152
153
153
#[ derive( Copy , Clone , Debug , PartialEq , Eq , Hash , HashStable ) ]
154
- #[ derive( TyEncodable , TyDecodable , TypeFoldable , TypeVisitable ) ]
154
+ #[ derive( TyEncodable , TyDecodable ) ]
155
155
pub enum Op {
156
156
Subtract ,
157
157
Add ,
@@ -168,15 +168,15 @@ impl Op {
168
168
}
169
169
170
170
#[ derive( Clone , Debug , PartialEq , Eq ) ]
171
- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
171
+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
172
172
pub struct Expression {
173
173
pub lhs : CovTerm ,
174
174
pub op : Op ,
175
175
pub rhs : CovTerm ,
176
176
}
177
177
178
178
#[ derive( Clone , Debug ) ]
179
- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
179
+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
180
180
pub enum MappingKind {
181
181
/// Associates a normal region of code with a counter/expression/zero.
182
182
Code ( CovTerm ) ,
@@ -208,7 +208,7 @@ impl MappingKind {
208
208
}
209
209
210
210
#[ derive( Clone , Debug ) ]
211
- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
211
+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
212
212
pub struct Mapping {
213
213
pub kind : MappingKind ,
214
214
pub span : Span ,
@@ -218,7 +218,7 @@ pub struct Mapping {
218
218
/// to be used in conjunction with the individual coverage statements injected
219
219
/// into the function's basic blocks.
220
220
#[ derive( Clone , Debug ) ]
221
- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
221
+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
222
222
pub struct FunctionCoverageInfo {
223
223
pub function_source_hash : u64 ,
224
224
pub body_span : Span ,
@@ -238,7 +238,7 @@ pub struct FunctionCoverageInfo {
238
238
/// ("Hi" indicates that this is "high-level" information collected at the
239
239
/// THIR/MIR boundary, before the MIR-based coverage instrumentation pass.)
240
240
#[ derive( Clone , Debug ) ]
241
- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
241
+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
242
242
pub struct CoverageInfoHi {
243
243
/// 1 more than the highest-numbered [`CoverageKind::BlockMarker`] that was
244
244
/// injected into the MIR body. This makes it possible to allocate per-ID
@@ -252,23 +252,23 @@ pub struct CoverageInfoHi {
252
252
}
253
253
254
254
#[ derive( Clone , Debug ) ]
255
- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
255
+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
256
256
pub struct BranchSpan {
257
257
pub span : Span ,
258
258
pub true_marker : BlockMarkerId ,
259
259
pub false_marker : BlockMarkerId ,
260
260
}
261
261
262
262
#[ derive( Copy , Clone , Debug ) ]
263
- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
263
+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
264
264
pub struct ConditionInfo {
265
265
pub condition_id : ConditionId ,
266
266
pub true_next_id : Option < ConditionId > ,
267
267
pub false_next_id : Option < ConditionId > ,
268
268
}
269
269
270
270
#[ derive( Clone , Debug ) ]
271
- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
271
+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
272
272
pub struct MCDCBranchSpan {
273
273
pub span : Span ,
274
274
pub condition_info : ConditionInfo ,
@@ -277,14 +277,14 @@ pub struct MCDCBranchSpan {
277
277
}
278
278
279
279
#[ derive( Copy , Clone , Debug ) ]
280
- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
280
+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
281
281
pub struct DecisionInfo {
282
282
pub bitmap_idx : u32 ,
283
283
pub num_conditions : u16 ,
284
284
}
285
285
286
286
#[ derive( Clone , Debug ) ]
287
- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
287
+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
288
288
pub struct MCDCDecisionSpan {
289
289
pub span : Span ,
290
290
pub end_markers : Vec < BlockMarkerId > ,
0 commit comments