mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-18 17:40:29 +00:00
libloading 0.7
See https://docs.rs/libloading/0.7.0/libloading/changelog/r0_7_0/index.html
This commit is contained in:
parent
b0f20a795d
commit
61092bd900
3 changed files with 7 additions and 7 deletions
|
@ -60,7 +60,7 @@ fn find_registrar_symbol(file: &Path) -> io::Result<Option<String>> {
|
|||
/// It seems that on Windows that behaviour is default, so we do nothing in that case.
|
||||
#[cfg(windows)]
|
||||
fn load_library(file: &Path) -> Result<Library, libloading::Error> {
|
||||
Library::new(file)
|
||||
unsafe { Library::new(file) }
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
|
@ -71,7 +71,7 @@ fn load_library(file: &Path) -> Result<Library, libloading::Error> {
|
|||
const RTLD_NOW: c_int = 0x00002;
|
||||
const RTLD_DEEPBIND: c_int = 0x00008;
|
||||
|
||||
UnixLibrary::open(Some(file), RTLD_NOW | RTLD_DEEPBIND).map(|lib| lib.into())
|
||||
unsafe { UnixLibrary::open(Some(file), RTLD_NOW | RTLD_DEEPBIND).map(|lib| lib.into()) }
|
||||
}
|
||||
|
||||
struct ProcMacroLibraryLibloading {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue