Skip to content

Commit 61092bd

Browse files
committed
1 parent b0f20a7 commit 61092bd

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Cargo.lock

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

crates/proc_macro_srv/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ doctest = false
1111

1212
[dependencies]
1313
object = { version = "0.23", default-features = false, features = ["std", "read_core", "elf", "macho", "pe"] }
14-
libloading = "0.6.0"
14+
libloading = "0.7.0"
1515
memmap2 = "0.2.0"
1616

1717
tt = { path = "../tt", version = "0.0.0" }

crates/proc_macro_srv/src/dylib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ fn find_registrar_symbol(file: &Path) -> io::Result<Option<String>> {
6060
/// It seems that on Windows that behaviour is default, so we do nothing in that case.
6161
#[cfg(windows)]
6262
fn load_library(file: &Path) -> Result<Library, libloading::Error> {
63-
Library::new(file)
63+
unsafe { Library::new(file) }
6464
}
6565

6666
#[cfg(unix)]
@@ -71,7 +71,7 @@ fn load_library(file: &Path) -> Result<Library, libloading::Error> {
7171
const RTLD_NOW: c_int = 0x00002;
7272
const RTLD_DEEPBIND: c_int = 0x00008;
7373

74-
UnixLibrary::open(Some(file), RTLD_NOW | RTLD_DEEPBIND).map(|lib| lib.into())
74+
unsafe { UnixLibrary::open(Some(file), RTLD_NOW | RTLD_DEEPBIND).map(|lib| lib.into()) }
7575
}
7676

7777
struct ProcMacroLibraryLibloading {

0 commit comments

Comments
 (0)