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 @@ pub fn extern_<P: AsRef<Path>>(&mut self, crate_name: &str, path: P) -> &mut Sel
|
||||
}
|
||||
|
||||
/// 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