diff --git a/src/driver/jit.rs b/src/driver/jit.rs index a53d281303f..48b99a71f30 100644 --- a/src/driver/jit.rs +++ b/src/driver/jit.rs @@ -271,7 +271,7 @@ fn load_imported_symbols_for_jit( .find(|(crate_type, _data)| *crate_type == rustc_session::config::CrateType::Executable) .unwrap() .1; - for &(cnum, _) in &crate_info.used_crates_dynamic { + for &cnum in &crate_info.used_crates { let src = &crate_info.used_crate_source[&cnum]; match data[cnum.as_usize() - 1] { Linkage::NotLinked | Linkage::IncludedFromDylib => {}