about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2022-09-01 15:36:12 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2022-09-01 15:52:48 +0000
commiteef75dde3ba669044e1f2c85d83ebd448efb97c7 (patch)
tree862f3b22e8cff40be8787a0194825ff1b194fca1
parent2231545ebf83901ced90d469b891b04a1fe89b97 (diff)
downloadrust-eef75dde3ba669044e1f2c85d83ebd448efb97c7.tar.gz
rust-eef75dde3ba669044e1f2c85d83ebd448efb97c7.zip
Update libloading to 0.7.3
This was previously done in bfcf97bd8360931eb088d65f247fc9e1016f8199, but got
reverted due to a bug. The bug seems to be fixed now.

Fixes #1137
-rw-r--r--Cargo.lock4
-rw-r--r--Cargo.toml2
-rw-r--r--src/driver/jit.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/Cargo.lock b/Cargo.lock
index edae7e47157..b4c607d482e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -232,9 +232,9 @@ checksum = "505e71a4706fa491e9b1b55f51b95d4037d0821ee40131190475f692b35b009b"
 
 [[package]]
 name = "libloading"
-version = "0.6.7"
+version = "0.7.3"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "351a32417a12d5f7e82c368a66781e307834dae04c6ce0cd4456d52989229883"
+checksum = "efbc0f03f9a775e9f6aed295c6a1ba2253c5757a9e03d55c6caa46a681abcddd"
 dependencies = [
  "cfg-if",
  "winapi",
diff --git a/Cargo.toml b/Cargo.toml
index e7c34274854..7a9e8f5d8e0 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -20,7 +20,7 @@ object = { version = "0.29.0", default-features = false, features = ["std", "rea
 
 ar = { git = "https://github.com/bjorn3/rust-ar.git", branch = "do_not_remove_cg_clif_ranlib" }
 indexmap = "1.9.1"
-libloading = { version = "0.6.0", optional = true }
+libloading = { version = "0.7.3", optional = true }
 once_cell = "1.10.0"
 smallvec = "1.8.1"
 
diff --git a/src/driver/jit.rs b/src/driver/jit.rs
index 4ad859b6d83..6a430b5215e 100644
--- a/src/driver/jit.rs
+++ b/src/driver/jit.rs
@@ -318,7 +318,7 @@ fn dep_symbol_lookup_fn(
     let imported_dylibs = Box::leak(
         dylib_paths
             .into_iter()
-            .map(|path| libloading::Library::new(&path).unwrap())
+            .map(|path| unsafe { libloading::Library::new(&path).unwrap() })
             .collect::<Box<[_]>>(),
     );