We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f10e2f commit c40cb21Copy full SHA for c40cb21
src/librustc_metadata/creader.rs
@@ -236,7 +236,8 @@ impl<'a> CrateLoader<'a> {
236
// path (this is a top-level dependency) as we don't want to
237
// implicitly load anything inside the dependency lookup path.
238
let prev_kind = source.dylib.as_ref().or(source.rlib.as_ref())
239
- .unwrap().1;
+ .or(source.rmeta.as_ref())
240
+ .expect("No sources for crate").1;
241
if ret.is_none() && (prev_kind == kind || prev_kind == PathKind::All) {
242
ret = Some(cnum);
243
}
0 commit comments