@@ -4,7 +4,7 @@ use std::fmt::{self, Debug, Formatter};
44
55use rustc_index:: IndexVec ;
66use rustc_index:: bit_set:: DenseBitSet ;
7- use rustc_macros:: { HashStable , TyDecodable , TyEncodable , TypeFoldable , TypeVisitable } ;
7+ use rustc_macros:: { HashStable , TyDecodable , TyEncodable } ;
88use rustc_span:: Span ;
99
1010rustc_index:: newtype_index! {
@@ -72,7 +72,7 @@ impl ConditionId {
7272/// Enum that can hold a constant zero value, the ID of an physical coverage
7373/// counter, or the ID of a coverage-counter expression.
7474#[ derive( Copy , Clone , PartialEq , Eq , PartialOrd , Ord ) ]
75- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
75+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
7676pub enum CovTerm {
7777 Zero ,
7878 Counter ( CounterId ) ,
@@ -89,7 +89,7 @@ impl Debug for CovTerm {
8989 }
9090}
9191
92- #[ derive( Clone , PartialEq , TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
92+ #[ derive( Clone , PartialEq , TyEncodable , TyDecodable , Hash , HashStable ) ]
9393pub enum CoverageKind {
9494 /// Marks a span that might otherwise not be represented in MIR, so that
9595 /// coverage instrumentation can associate it with its enclosing block/BCB.
@@ -151,7 +151,7 @@ impl Debug for CoverageKind {
151151}
152152
153153#[ derive( Copy , Clone , Debug , PartialEq , Eq , Hash , HashStable ) ]
154- #[ derive( TyEncodable , TyDecodable , TypeFoldable , TypeVisitable ) ]
154+ #[ derive( TyEncodable , TyDecodable ) ]
155155pub enum Op {
156156 Subtract ,
157157 Add ,
@@ -168,15 +168,15 @@ impl Op {
168168}
169169
170170#[ derive( Clone , Debug , PartialEq , Eq ) ]
171- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
171+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
172172pub struct Expression {
173173 pub lhs : CovTerm ,
174174 pub op : Op ,
175175 pub rhs : CovTerm ,
176176}
177177
178178#[ derive( Clone , Debug ) ]
179- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
179+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
180180pub enum MappingKind {
181181 /// Associates a normal region of code with a counter/expression/zero.
182182 Code ( CovTerm ) ,
@@ -208,7 +208,7 @@ impl MappingKind {
208208}
209209
210210#[ derive( Clone , Debug ) ]
211- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
211+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
212212pub struct Mapping {
213213 pub kind : MappingKind ,
214214 pub span : Span ,
@@ -218,7 +218,7 @@ pub struct Mapping {
218218/// to be used in conjunction with the individual coverage statements injected
219219/// into the function's basic blocks.
220220#[ derive( Clone , Debug ) ]
221- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
221+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
222222pub struct FunctionCoverageInfo {
223223 pub function_source_hash : u64 ,
224224 pub body_span : Span ,
@@ -238,7 +238,7 @@ pub struct FunctionCoverageInfo {
238238/// ("Hi" indicates that this is "high-level" information collected at the
239239/// THIR/MIR boundary, before the MIR-based coverage instrumentation pass.)
240240#[ derive( Clone , Debug ) ]
241- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
241+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
242242pub struct CoverageInfoHi {
243243 /// 1 more than the highest-numbered [`CoverageKind::BlockMarker`] that was
244244 /// injected into the MIR body. This makes it possible to allocate per-ID
@@ -252,23 +252,23 @@ pub struct CoverageInfoHi {
252252}
253253
254254#[ derive( Clone , Debug ) ]
255- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
255+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
256256pub struct BranchSpan {
257257 pub span : Span ,
258258 pub true_marker : BlockMarkerId ,
259259 pub false_marker : BlockMarkerId ,
260260}
261261
262262#[ derive( Copy , Clone , Debug ) ]
263- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
263+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
264264pub struct ConditionInfo {
265265 pub condition_id : ConditionId ,
266266 pub true_next_id : Option < ConditionId > ,
267267 pub false_next_id : Option < ConditionId > ,
268268}
269269
270270#[ derive( Clone , Debug ) ]
271- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
271+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
272272pub struct MCDCBranchSpan {
273273 pub span : Span ,
274274 pub condition_info : ConditionInfo ,
@@ -277,14 +277,14 @@ pub struct MCDCBranchSpan {
277277}
278278
279279#[ derive( Copy , Clone , Debug ) ]
280- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
280+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
281281pub struct DecisionInfo {
282282 pub bitmap_idx : u32 ,
283283 pub num_conditions : u16 ,
284284}
285285
286286#[ derive( Clone , Debug ) ]
287- #[ derive( TyEncodable , TyDecodable , Hash , HashStable , TypeFoldable , TypeVisitable ) ]
287+ #[ derive( TyEncodable , TyDecodable , Hash , HashStable ) ]
288288pub struct MCDCDecisionSpan {
289289 pub span : Span ,
290290 pub end_markers : Vec < BlockMarkerId > ,
0 commit comments