Skip to content

Commit 604dcb0

Browse files
committed
Add scope alias as a future possibility
1 parent 0b59e5c commit 604dcb0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

text/3127-trim-paths.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,3 +254,8 @@ or is it a part of the path; if the first `:` supplied belongs to the path then
254254

255255
In any case, future inclusion of this new syntax will not affect `--remap-path-scope` introduced in this RFC. Scopes specified in `--remap-path-scope`
256256
will be used as default for all mappings, and explicit scopes for an individual mapping will take precedence on that mapping.
257+
258+
## Alias for scope options
259+
`--remap-path-scope` can be made to accept additional options that act as aliases for one or more of the existing options. For instance, `--remap-path-scope=debuginfo` can be made equivalent to `--remap-path-scope=split-debuginfo,unsplit-debuginfo`.
260+
261+
Additionally, `none`, `object` and `all` can be made aliases of what Cargo's `trim-paths` option is supposed to provide, such that Cargo's `trim-paths` option can be directly used as the value of `--remap-path-scope`. This allows the user to write `object,split-debuginfo` in `trim-paths` to remap paths in binaries/executables and split debuginfo files, but not in diagnostics.

0 commit comments

Comments
 (0)