diff --git a/compiler/rustc_middle/src/mir/coverage.rs b/compiler/rustc_middle/src/mir/coverage.rs index db24dae1130..037d9d07b3c 100644 --- a/compiler/rustc_middle/src/mir/coverage.rs +++ b/compiler/rustc_middle/src/mir/coverage.rs @@ -99,9 +99,13 @@ impl From for ExpressionOperandId { pub enum CoverageKind { Counter { function_source_hash: u64, + /// ID of this counter within its enclosing function. + /// Expressions in the same function can refer to it as an operand. id: CounterValueReference, }, Expression { + /// ID of this coverage-counter expression within its enclosing function. + /// Other expressions in the same function can refer to it as an operand. id: InjectedExpressionId, lhs: ExpressionOperandId, op: Op,