Skip to content

Commit bec2441

Browse files
Rollup merge of #79428 - camelid:fixup-compiler-docs, r=davidtwco
Fixup compiler docs The sublist was being rendered as a code block because it was indented 4 spaces.
2 parents 674d8c3 + 46a750e commit bec2441

File tree

1 file changed

+12
-12
lines changed
  • compiler/rustc_mir/src/transform/coverage

1 file changed

+12
-12
lines changed

compiler/rustc_mir/src/transform/coverage/debug.rs

+12-12
Original file line numberDiff line numberDiff line change
@@ -95,18 +95,18 @@
9595
//!
9696
//! Depending on the values and combinations, counters can be labeled by:
9797
//!
98-
//! * `id` - counter or expression ID (ascending counter IDs, starting at 1, or descending
99-
//! expression IDs, starting at `u32:MAX`)
100-
//! * `block` - the `BasicCoverageBlock` label (for example, `bcb0`) or edge label (for
101-
//! example `bcb0->bcb1`), for counters or expressions assigned to count a
102-
//! `BasicCoverageBlock` or edge. Intermediate expressions (not directly associated with
103-
//! a BCB or edge) will be labeled by their expression ID, unless `operation` is also
104-
//! specified.
105-
//! * `operation` - applied to expressions only, labels include the left-hand-side counter
106-
//! or expression label (lhs operand), the operator (`+` or `-`), and the right-hand-side
107-
//! counter or expression (rhs operand). Expression operand labels are generated
108-
//! recursively, generating labels with nested operations, enclosed in parentheses
109-
//! (for example: `bcb2 + (bcb0 - bcb1)`).
98+
//! * `id` - counter or expression ID (ascending counter IDs, starting at 1, or descending
99+
//! expression IDs, starting at `u32:MAX`)
100+
//! * `block` - the `BasicCoverageBlock` label (for example, `bcb0`) or edge label (for
101+
//! example `bcb0->bcb1`), for counters or expressions assigned to count a
102+
//! `BasicCoverageBlock` or edge. Intermediate expressions (not directly associated with
103+
//! a BCB or edge) will be labeled by their expression ID, unless `operation` is also
104+
//! specified.
105+
//! * `operation` - applied to expressions only, labels include the left-hand-side counter
106+
//! or expression label (lhs operand), the operator (`+` or `-`), and the right-hand-side
107+
//! counter or expression (rhs operand). Expression operand labels are generated
108+
//! recursively, generating labels with nested operations, enclosed in parentheses
109+
//! (for example: `bcb2 + (bcb0 - bcb1)`).
110110
111111
use super::graph::{BasicCoverageBlock, BasicCoverageBlockData, CoverageGraph};
112112
use super::spans::CoverageSpan;

0 commit comments

Comments
 (0)