[−][src]Function rustc_ap_rustc_fs_util::rename_or_copy_remove
pub fn rename_or_copy_remove<P: AsRef<Path>, Q: AsRef<Path>>(
p: P,
q: Q
) -> Result<RenameOrCopyRemove>
Rename p
into q
, preferring to use rename
if possible.
If rename
fails (rename may fail for reasons such as crossing
filesystem), fallback to copy & remove