Skip to content

Commit 6e45014

Browse files
committed
Make the Cargo option effective to all compile modes
1 parent 7c533d3 commit 6e45014

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

text/3127-trim-paths.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,6 @@ This will not affect any hard-coded paths in the source code, such as in strings
147147

148148
## `trim-paths` implementation in Cargo
149149

150-
We only need to change the behaviour for `Test` and `Build` compile modes.
151-
152150
If `trim-paths` is `none` (`false`), no extra flag is supplied to `rustc`.
153151

154152
If `trim-paths` is anything else, then its value is supplied directly to `rustc`'s `--remap-path-scope` option, along with two `--remap-path-prefix` arguments:
@@ -241,7 +239,6 @@ the other for only debuginfo: https://reproducible-builds.org/docs/build-path/.
241239
package roots to `[package name]-[version]`. A minor downside to this is not being able to `Ctrl+click` on paths to files the user is working
242240
on from panic messages.
243241
- Will these cover all potentially embedded paths? Have we missed anything?
244-
- Should we make this affect more `CompileMode`s, such as `Check`, where the emitted `rmeta` file will also contain absolute paths?
245242

246243
# Future possibilities
247244
[future-possibilities]: #future-possibilities

0 commit comments

Comments
 (0)