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.
DiagnosticBuilder
emit
1 parent 0cfbc47 commit e6570dcCopy full SHA for e6570dc
src/driver/jit.rs
@@ -321,9 +321,10 @@ 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.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();
+ sess.dcx()
+ .struct_err(format!("Can't load static lib {}", name))
+ .note("rustc_codegen_cranelift can only load dylibs in JIT mode.")
327
+ .emit();
328
}
329
Linkage::Dynamic => {
330
dylib_paths.push(src.dylib.as_ref().unwrap().0.clone());
0 commit comments