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
Rollup merge of rust-lang#148139 - Urgau:add-coverage-scope, r=Zalathar
Add `coverage` scope for controlling paths in code coverage
This PR adds a `coverage` scope (for `-Zremap-path-scope`) for controlling if the paths that ends up in code coverage output should be remapped or not.
Currently code coverage use the `macro` scope which is not a appropriate scope for them.
Found during the stabilization of `-Zremap-path-scope` rust-lang#147611 (comment) and was asked to be in a separate PR in rust-lang#147611 (comment).
r? compiler
Copy file name to clipboardExpand all lines: compiler/rustc_session/src/options.rs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -869,8 +869,7 @@ mod desc {
869
869
pub(crate)const parse_branch_protection:&str = "a `,` separated combination of `bti`, `gcs`, `pac-ret`, (optionally with `pc`, `b-key`, `leaf` if `pac-ret` is set)";
"one of supported execution strategies (`same-thread`, or `cross-thread`)";
872
-
pub(crate)const parse_remap_path_scope:&str =
873
-
"comma separated list of scopes: `macro`, `diagnostics`, `debuginfo`, `object`, `all`";
872
+
pub(crate)const parse_remap_path_scope:&str = "comma separated list of scopes: `macro`, `diagnostics`, `debuginfo`, `coverage`, `object`, `all`";
874
873
pub(crate)const parse_inlining_threshold:&str =
875
874
"either a boolean (`yes`, `no`, `on`, `off`, etc), or a non-negative number";
876
875
pub(crate)const parse_llvm_module_flag:&str = "<key>:<type>:<value>:<behavior>. Type must currently be `u32`. Behavior should be one of (`error`, `warning`, `require`, `override`, `append`, `appendunique`, `max`, `min`)";
0 commit comments