mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
Allow to have different types for arguments of Rustc::remap_path_prefix
This commit is contained in:
parent
d68fe4eaa8
commit
1471532131
@ -107,7 +107,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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user