7638: libloading 0.7 r=kjeremy a=kjeremy

See https://docs.rs/libloading/0.7.0/libloading/changelog/r0_7_0/index.html

7648: fix nightly warning `legacy_derive_helpers` r=lnicola a=peddermaster2

With a recent nightly (e.g. 2021-02-10) a warning comes up. This PR reorders the attributes to fix the warning.

See https://github.com/rust-lang/rust/issues/79202

Co-authored-by: kjeremy <kjeremy@gmail.com>
Co-authored-by: Peter Wischer <peter.wischer@lwl.org>
This commit is contained in:
bors[bot] 2021-02-12 13:01:44 +00:00 committed by GitHub
commit a044ac980c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 9 deletions

8
Cargo.lock generated
View File

@ -791,9 +791,9 @@ checksum = "b7282d924be3275cec7f6756ff4121987bc6481325397dde6ba3e7802b1a8b1c"
[[package]] [[package]]
name = "libloading" name = "libloading"
version = "0.6.7" version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "351a32417a12d5f7e82c368a66781e307834dae04c6ce0cd4456d52989229883" checksum = "6f84d96438c15fcd6c3f244c8fce01d1e2b9c6b5623e9c711dc9286d8fc92d6a"
dependencies = [ dependencies = [
"cfg-if", "cfg-if",
"winapi", "winapi",
@ -1841,9 +1841,9 @@ dependencies = [
[[package]] [[package]]
name = "unicode-normalization" name = "unicode-normalization"
version = "0.1.16" version = "0.1.17"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a13e63ab62dbe32aeee58d1c5408d35c36c392bba5d9d3142287219721afe606" checksum = "07fbfce1c8a97d547e8b5334978438d9d6ec8c20e38f56d4a4374d181493eaef"
dependencies = [ dependencies = [
"tinyvec", "tinyvec",
] ]

View File

@ -11,7 +11,7 @@ doctest = false
[dependencies] [dependencies]
object = { version = "0.23", default-features = false, features = ["std", "read_core", "elf", "macho", "pe"] } object = { version = "0.23", default-features = false, features = ["std", "read_core", "elf", "macho", "pe"] }
libloading = "0.6.0" libloading = "0.7.0"
memmap2 = "0.2.0" memmap2 = "0.2.0"
tt = { path = "../tt", version = "0.0.0" } tt = { path = "../tt", version = "0.0.0" }

View File

@ -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. /// It seems that on Windows that behaviour is default, so we do nothing in that case.
#[cfg(windows)] #[cfg(windows)]
fn load_library(file: &Path) -> Result<Library, libloading::Error> { fn load_library(file: &Path) -> Result<Library, libloading::Error> {
Library::new(file) unsafe { Library::new(file) }
} }
#[cfg(unix)] #[cfg(unix)]
@ -71,7 +71,7 @@ fn load_library(file: &Path) -> Result<Library, libloading::Error> {
const RTLD_NOW: c_int = 0x00002; const RTLD_NOW: c_int = 0x00002;
const RTLD_DEEPBIND: c_int = 0x00008; 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 { struct ProcMacroLibraryLibloading {

View File

@ -230,8 +230,8 @@ pub struct SsrParams {
pub enum StatusNotification {} pub enum StatusNotification {}
#[serde(rename_all = "camelCase")]
#[derive(Serialize, Deserialize)] #[derive(Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub enum Status { pub enum Status {
Loading, Loading,
ReadyPartial, ReadyPartial,

View File

@ -1,5 +1,5 @@
<!--- <!---
lsp_ext.rs hash: 7609fd6d7b4ab231 lsp_ext.rs hash: 8f1ae8530f69e3a3
If you need to change the above hash to make the test pass, please check if you If you need to change the above hash to make the test pass, please check if you
need to adjust this doc as well and ping this issue: need to adjust this doc as well and ping this issue: