We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68d2275 commit 50b008aCopy full SHA for 50b008a
src/tools/compiletest/src/runtest.rs
@@ -1976,7 +1976,10 @@ actual:\n\
1976
// runs.
1977
let incremental_dir = self.incremental_dir();
1978
if incremental_dir.exists() {
1979
- fs::remove_dir_all(&incremental_dir).unwrap();
+ // Canonicalizing the path will convert it to the //?/ format
1980
+ // on Windows, which enables paths longer than 260 character
1981
+ let canonicalized = incremental_dir.canonicalize().unwrap();
1982
+ fs::remove_dir_all(canonicalized).unwrap();
1983
}
1984
fs::create_dir_all(&incremental_dir).unwrap();
1985
0 commit comments