Skip to content

Commit 7028e24

Browse files
authored
Rollup merge of rust-lang#150721 - patch-1, r=GuillaumeGomez
Deprecated doc intra link
2 parents a0cdb57 + 5b4dbe0 commit 7028e24

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/doc/rustc/src/remap-source-paths.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
`rustc` supports remapping source paths prefixes **as a best effort** in all compiler generated
44
output, including compiler diagnostics, debugging information, macro expansions, etc.
55

6-
This is useful for normalizing build products, for example by removing the current directory
6+
This is useful for normalizing build products, for example, by removing the current directory
77
out of the paths emitted into object files.
88

99
The remapping is done via the `--remap-path-prefix` option.
@@ -41,7 +41,7 @@ This example replaces all occurrences of `/home/user/project` in emitted paths w
4141

4242
## Caveats and Limitations
4343

44-
### Linkers generated paths
44+
### Paths generated by linkers
4545

4646
On some platforms like `x86_64-pc-windows-msvc`, the linker may embed absolute host paths and compiler
4747
arguments into debug info files (like `.pdb`) independently of `rustc`.
@@ -54,7 +54,7 @@ The `--remap-path-prefix` option does not affect these linker-generated paths.
5454
### Textual replacement only
5555

5656
The remapping is strictly textual and does not account for different path separator conventions across
57-
platforms. Care must be taken when specifying prefixes, especially on Windows where both `/` and `\` may
57+
platforms. Care must be taken when specifying prefixes, especially on Windows, where both `/` and `\` may
5858
appear in paths.
5959

6060
### External tools

0 commit comments

Comments
 (0)