Skip to content

Commit 1471532

Browse files
Allow to have different types for arguments of Rustc::remap_path_prefix
1 parent d68fe4e commit 1471532

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/tools/run-make-support/src/rustc.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,11 @@ impl Rustc {
107107
}
108108

109109
/// Remap source path prefixes in all output.
110-
pub fn remap_path_prefix<P: AsRef<Path>>(&mut self, from: P, to: P) -> &mut Self {
110+
pub fn remap_path_prefix<P: AsRef<Path>, P2: AsRef<Path>>(
111+
&mut self,
112+
from: P,
113+
to: P2,
114+
) -> &mut Self {
111115
let from = from.as_ref().to_string_lossy();
112116
let to = to.as_ref().to_string_lossy();
113117

0 commit comments

Comments
 (0)