Skip to content

Commit 734095b

Browse files
authored
Unrolled build for rust-lang#135680
Rollup merge of rust-lang#135680 - Zalathar:counters-cleanup, r=compiler-errors coverage: Clean up a few things after the counters overhaul Follow-up to rust-lang#135481. No functional change; this is mostly just deleting or moving code.
2 parents 1d55f72 + ea0c86c commit 734095b

File tree

3 files changed

+136
-197
lines changed

3 files changed

+136
-197
lines changed

compiler/rustc_middle/src/mir/coverage.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,7 @@ impl ConditionId {
7171

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.
74-
///
75-
/// This was originally only used for expression operands (and named `Operand`),
76-
/// but the zero/counter/expression distinction is also useful for representing
77-
/// the value of code/gap mappings, and the true/false arms of branch mappings.
78-
#[derive(Copy, Clone, PartialEq, Eq)]
74+
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord)]
7975
#[derive(TyEncodable, TyDecodable, Hash, HashStable, TypeFoldable, TypeVisitable)]
8076
pub enum CovTerm {
8177
Zero,
@@ -171,7 +167,7 @@ impl Op {
171167
}
172168
}
173169

174-
#[derive(Clone, Debug)]
170+
#[derive(Clone, Debug, PartialEq, Eq)]
175171
#[derive(TyEncodable, TyDecodable, Hash, HashStable, TypeFoldable, TypeVisitable)]
176172
pub struct Expression {
177173
pub lhs: CovTerm,

0 commit comments

Comments
 (0)