Skip to content

Commit 283ef86

Browse files
authored
Rollup merge of #84815 - richkadel:coverage-docs-update-2021-05, r=tmandry
Update coverage docs and command line help r? `@tmandry` cc: `@wesleywiser`
2 parents 246e8d1 + 8075b28 commit 283ef86

File tree

5 files changed

+385
-331
lines changed

5 files changed

+385
-331
lines changed

compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ fn save_function_record(
249249
///
250250
/// We can find the unused functions (including generic functions) by the set difference of all MIR
251251
/// `DefId`s (`tcx` query `mir_keys`) minus the codegenned `DefId`s (`tcx` query
252-
/// `collect_and_partition_mono_items`).
252+
/// `codegened_and_inlined_items`).
253253
///
254254
/// *HOWEVER* the codegenned `DefId`s are partitioned across multiple `CodegenUnit`s (CGUs), and
255255
/// this function is processing a `function_coverage_map` for the functions (`Instance`/`DefId`)

compiler/rustc_session/src/options.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1080,12 +1080,12 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
10801080
"gather statistics about the input (default: no)"),
10811081
instrument_coverage: Option<InstrumentCoverage> = (None, parse_instrument_coverage, [TRACKED],
10821082
"instrument the generated code to support LLVM source-based code coverage \
1083-
reports (note, the compiler build config must include `profiler = true`, \
1084-
and is mutually exclusive with `-C profile-generate`/`-C profile-use`); \
1085-
implies `-Z symbol-mangling-version=v0`; disables/overrides some Rust \
1086-
optimizations. Optional values are: `=all` (default coverage), \
1087-
`=except-unused-generics`, `=except-unused-functions`, or `=off` \
1088-
(default: instrument-coverage=off)"),
1083+
reports (note, the compiler build config must include `profiler = true`); \
1084+
implies `-Z symbol-mangling-version=v0`. Optional values are:
1085+
`=all` (implicit value)
1086+
`=except-unused-generics`
1087+
`=except-unused-functions`
1088+
`=off` (default)"),
10891089
instrument_mcount: bool = (false, parse_bool, [TRACKED],
10901090
"insert function instrument code for mcount-based tracing (default: no)"),
10911091
keep_hygiene_data: bool = (false, parse_bool, [UNTRACKED],

0 commit comments

Comments
 (0)