We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1b9b79 commit 3595de3Copy full SHA for 3595de3
src/cargo/core/compiler/fingerprint.rs
@@ -1571,7 +1571,13 @@ pub fn translate_dep_info(
1571
1572
let mut new_contents = Vec::new();
1573
for file in deps {
1574
- let file = rustc_cwd.join(file);
+ let file = if cfg!(windows) && file.starts_with("\\\\?\\") {
1575
+ // Remove Windows extended-length prefix, since functions like
1576
+ // strip_prefix won't work if you mix with traditional dos paths.
1577
+ PathBuf::from(&file[4..])
1578
+ } else {
1579
+ rustc_cwd.join(file)
1580
+ };
1581
let (ty, path) = if let Ok(stripped) = file.strip_prefix(target_root) {
1582
(DepInfoPathType::TargetRootRelative, stripped)
1583
} else if let Ok(stripped) = file.strip_prefix(pkg_root) {
0 commit comments