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_dump_mono_stats:&str = "`markdown` (default) or `json`";
397
-
pubconst parse_instrument_coverage:&str =
398
-
"`all` (default), `branch`, `except-unused-generics`, `except-unused-functions`, or `off`";
397
+
pubconst parse_instrument_coverage:&str = "either a boolean (`yes`, `no`, `on`, `off`, etc) or (unstable) one of `branch`, `except-unused-generics`, `except-unused-functions`";
399
398
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`";
400
399
pubconst parse_unpretty:&str = "`string` or `string=string`";
401
400
pubconst parse_treat_err_as_bug:&str = "either no value or a non-negative number";
@@ -918,26 +917,26 @@ mod parse {
918
917
if v.is_some(){
919
918
letmut bool_arg = false;
920
919
ifparse_bool(&mut bool_arg, v){
921
-
*slot = if bool_arg {InstrumentCoverage::All}else{InstrumentCoverage::Off};
920
+
*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