1
Fork 0

Merge commit '6d355f6844' into sync_cg_clif-2023-12-31

This commit is contained in:
bjorn3 2023-12-31 13:29:53 +00:00
commit d1d134e464
6 changed files with 22 additions and 20 deletions

View file

@ -321,7 +321,7 @@ fn dep_symbol_lookup_fn(
Linkage::NotLinked | Linkage::IncludedFromDylib => {}
Linkage::Static => {
let name = crate_info.crate_name[&cnum];
let mut err = sess.struct_err(format!("Can't load static lib {}", name));
let mut err = sess.dcx().struct_err(format!("Can't load static lib {}", name));
err.note("rustc_codegen_cranelift can only load dylibs in JIT mode.");
err.emit();
}