We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c0ad60 commit 1dbb249Copy full SHA for 1dbb249
rust-toolchain
@@ -1,3 +1,3 @@
1
[toolchain]
2
-channel = "nightly-2023-12-24"
+channel = "nightly-2023-12-28"
3
components = ["rust-src", "rustc-dev", "llvm-tools"]
src/driver/jit.rs
@@ -321,7 +321,7 @@ fn dep_symbol_lookup_fn(
321
Linkage::NotLinked | Linkage::IncludedFromDylib => {}
322
Linkage::Static => {
323
let name = crate_info.crate_name[&cnum];
324
- 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));
325
err.note("rustc_codegen_cranelift can only load dylibs in JIT mode.");
326
err.emit();
327
}
0 commit comments