Skip to content

Commit d18697e

Browse files
authored
Unrolled build for rust-lang#127307
Rollup merge of rust-lang#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 9f877c9 + 1471532 commit d18697e

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
@@ -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)