diff options
| -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(); |
