Skip to content

Commit 12c2fd2

Browse files
authored
Rollup merge of #105532 - poliorcetics:document-remap-order, r=JohnTitor
Document behaviour of `--remap-path-prefix` with several matches
2 parents cb47531 + 952bf87 commit 12c2fd2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/doc/rustc/src/command-line-arguments.md

+3
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,9 @@ replacement is purely textual, with no consideration of the current system's
434434
pathname syntax. For example `--remap-path-prefix foo=bar` will match
435435
`foo/lib.rs` but not `./foo/lib.rs`.
436436

437+
When multiple remappings are given and several of them match, the **last**
438+
matching one is applied.
439+
437440
<a id="option-json"></a>
438441
## `--json`: configure json messages printed by the compiler
439442

0 commit comments

Comments
 (0)