Skip to content

Commit 6b3a061

Browse files
committed
Remove LibSource
The information is stored in used_crate_source too anyway
1 parent 913c0bc commit 6b3a061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/driver/jit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ fn load_imported_symbols_for_jit(tcx: TyCtxt<'_>) -> Vec<(String, *const u8)> {
185185
.find(|(crate_type, _data)| *crate_type == rustc_session::config::CrateType::Executable)
186186
.unwrap()
187187
.1;
188-
for &(cnum, _) in &crate_info.used_crates_dynamic {
188+
for &cnum in &crate_info.used_crates {
189189
let src = &crate_info.used_crate_source[&cnum];
190190
match data[cnum.as_usize() - 1] {
191191
Linkage::NotLinked | Linkage::IncludedFromDylib => {}

0 commit comments

Comments
 (0)