Skip to content

Commit bfcf97b

Browse files
committed
Update libc and libloading
1 parent 6fe5eac commit bfcf97b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Cargo.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ object = { version = "0.23.0", default-features = false, features = ["std", "rea
2020

2121
ar = { git = "https://github.com/bjorn3/rust-ar.git", branch = "do_not_remove_cg_clif_ranlib" }
2222
indexmap = "1.0.2"
23-
libloading = { version = "0.6.0", optional = true }
23+
libloading = { version = "0.7.0", optional = true }
2424
smallvec = "1.6.1"
2525

2626
# Uncomment to use local checkout of cranelift

src/driver/jit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ fn load_imported_symbols_for_jit(tcx: TyCtxt<'_>) -> Vec<(String, *const u8)> {
210210
let mut imported_symbols = Vec::new();
211211
for path in dylib_paths {
212212
use object::{Object, ObjectSymbol};
213-
let lib = libloading::Library::new(&path).unwrap();
213+
let lib = unsafe { libloading::Library::new(&path).unwrap() };
214214
let obj = std::fs::read(path).unwrap();
215215
let obj = object::File::parse(&obj).unwrap();
216216
imported_symbols.extend(obj.dynamic_symbols().filter_map(|symbol| {

0 commit comments

Comments
 (0)