Skip to content

Commit c091d09

Browse files
authored
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`
2 parents 54bd3a7 + 1471532 commit c091d09

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@ impl Rustc {
108108
}
109109

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

0 commit comments

Comments
 (0)