Skip to content

Commit e42c7a1

Browse files
committed
Locate split metadata for rlibs too
1 parent 0802ebe commit e42c7a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_metadata/src/locator.rs

+1
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,7 @@ impl<'a> CrateLocator<'a> {
735735
};
736736
if file.starts_with("lib") {
737737
if file.ends_with(".rlib") {
738+
rmetas.insert(loc_canon.with_extension("rmeta"), PathKind::ExternFlag);
738739
rlibs.insert(loc_canon.clone(), PathKind::ExternFlag);
739740
continue;
740741
}

0 commit comments

Comments
 (0)