diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-07-04 18:16:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-04 18:16:24 +0200 |
| commit | c091d09b049390f3c5d5002883efea8ac7475f26 (patch) | |
| tree | 22515733b5de6bca522c717c06b7212a3cf75732 /src/tools | |
| parent | 54bd3a7b8d06800fcd280191619d569f493c3d3d (diff) | |
| parent | 1471532131984a8819401b02201982b5993ba996 (diff) | |
Rollup merge of #127307 - GuillaumeGomez:different-types-remap_path_prefix, r=Kobzol
Allow to have different types for arguments of `Rustc::remap_path_prefix` r? `@Kobzol`
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/run-make-support/src/rustc.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tools/run-make-support/src/rustc.rs b/src/tools/run-make-support/src/rustc.rs index 054836e87cf..885b361f72a 100644 --- a/src/tools/run-make-support/src/rustc.rs +++ b/src/tools/run-make-support/src/rustc.rs @@ -108,7 +108,11 @@ impl Rustc { } /// Remap source path prefixes in all output. - pub fn remap_path_prefix<P: AsRef<Path>>(&mut self, from: P, to: P) -> &mut Self { + pub fn remap_path_prefix<P: AsRef<Path>, P2: AsRef<Path>>( + &mut self, + from: P, + to: P2, + ) -> &mut Self { let from = from.as_ref().to_string_lossy(); let to = to.as_ref().to_string_lossy(); |
