Skip to content

Commit 6d79c85

Browse files
committed
Don't canonicalize crate paths
1 parent 2da29db commit 6d79c85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: compiler/rustc_metadata/src/locator.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,8 @@ impl<'a> CrateLocator<'a> {
432432
if seen_paths.contains(&path) {
433433
continue;
434434
};
435-
seen_paths.insert(path.clone());
435+
seen_paths.insert(path);
436+
let path = spf.path.to_path_buf();
436437
match kind {
437438
CrateFlavor::Rlib => rlibs.insert(path, search_path.kind),
438439
CrateFlavor::Rmeta => rmetas.insert(path, search_path.kind),

0 commit comments

Comments
 (0)