We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8748e37 commit 5added3Copy full SHA for 5added3
compiler/rustc_codegen_ssa/src/back/link.rs
@@ -263,9 +263,10 @@ pub fn each_linked_rlib(
263
None => return Err("could not find formats for rlibs".to_string()),
264
}
265
let name = &info.crate_name[&cnum];
266
- let path = if let Some((path, _)) = &info.used_crate_source[&cnum].rlib {
+ let used_crate_source = &info.used_crate_source[&cnum];
267
+ let path = if let Some((path, _)) = &used_crate_source.rlib {
268
path
- } else if info.used_crate_source[&cnum].rmeta.is_some() {
269
+ } else if used_crate_source.rmeta.is_some() {
270
return Err(format!(
271
"could not find rlib for: `{}`, found rmeta (metadata) file",
272
name
0 commit comments