You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pubconst parse_mir_spanview:&str = "`statement` (default), `terminator`, or `block`";
390
390
pubconst parse_dump_mono_stats:&str = "`markdown` (default) or `json`";
391
-
pubconst parse_instrument_coverage:&str =
392
-
"`all` (default), `branch`, `except-unused-generics`, `except-unused-functions`, or `off`";
391
+
pubconst parse_instrument_coverage:&str = "either a boolean (`yes`, `no`, `on`, `off`, etc) or (unstable) one of `branch`, `except-unused-generics`, `except-unused-functions`";
393
392
pubconst parse_instrument_xray:&str = "either a boolean (`yes`, `no`, `on`, `off`, etc), or a comma separated list of settings: `always` or `never` (mutually exclusive), `ignore-loops`, `instruction-threshold=N`, `skip-entry`, `skip-exit`";
394
393
pubconst parse_unpretty:&str = "`string` or `string=string`";
395
394
pubconst parse_treat_err_as_bug:&str = "either no value or a non-negative number";
@@ -919,26 +918,26 @@ mod parse {
919
918
if v.is_some(){
920
919
letmut bool_arg = false;
921
920
ifparse_bool(&mut bool_arg, v){
922
-
*slot = if bool_arg {InstrumentCoverage::All}else{InstrumentCoverage::Off};
921
+
*slot = if bool_arg {InstrumentCoverage::Yes}else{InstrumentCoverage::No};
Copy file name to clipboardexpand all lines: src/doc/rustc/src/instrument-coverage.md
+23-4
Original file line number
Diff line number
Diff line change
@@ -331,10 +331,29 @@ $ llvm-cov report \
331
331
332
332
## `-C instrument-coverage=<options>`
333
333
334
-
-`-C instrument-coverage=all`: Instrument all functions, including unused functions and unused generics. (This is the same as `-C instrument-coverage`, with no value.)
335
-
-`-C instrument-coverage=off`: Do not instrument any functions. (This is the same as simply not including the `-C instrument-coverage` option.)
336
-
-`-Zunstable-options -C instrument-coverage=except-unused-generics`: Instrument all functions except unused generics.
337
-
-`-Zunstable-options -C instrument-coverage=except-unused-functions`: Instrument only used (called) functions and instantiated generic functions.
error: incorrect value `bad-value` for codegen option `instrument-coverage` - `all` (default), `branch`, `except-unused-generics`, `except-unused-functions`, or `off` was expected
1
+
error: incorrect value `bad-value` for codegen option `instrument-coverage` - either a boolean (`yes`, `no`, `on`, `off`, etc) or (unstable) one of `branch`, `except-unused-generics`, `except-unused-functions` was expected
error: incorrect value `` for codegen option `instrument-coverage` - `all` (default), `branch`, `except-unused-generics`, `except-unused-functions`, or `off` was expected
1
+
error: incorrect value `` for codegen option `instrument-coverage` - either a boolean (`yes`, `no`, `on`, `off`, etc) or (unstable) one of `branch`, `except-unused-generics`, `except-unused-functions` was expected
0 commit comments