about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src/driver
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-12-31 13:29:53 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-12-31 13:29:53 +0000
commitd1d134e464ee683530e3d1ba646498e2260f9554 (patch)
tree039466c2f494b705f8d4b0961481047f95a878ae /compiler/rustc_codegen_cranelift/src/driver
parentfcfe05aa7538fbb18fc3baff9aabdf9a1cd14b1e (diff)
parent6d355f6844323db03bfd608899613e363e701951 (diff)
downloadrust-d1d134e464ee683530e3d1ba646498e2260f9554.tar.gz
rust-d1d134e464ee683530e3d1ba646498e2260f9554.zip
Merge commit '6d355f6844323db03bfd608899613e363e701951' into sync_cg_clif-2023-12-31
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/driver')
-rw-r--r--compiler/rustc_codegen_cranelift/src/driver/jit.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/driver/jit.rs b/compiler/rustc_codegen_cranelift/src/driver/jit.rs
index 7905ec8402d..a8d8fb189e2 100644
--- a/compiler/rustc_codegen_cranelift/src/driver/jit.rs
+++ b/compiler/rustc_codegen_cranelift/src/driver/jit.rs
@@ -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();
             }