Skip to content

Commit a044ac9

Browse files
bors[bot]kjeremyPeterW-LWL
authored
Merge #7638 #7648
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 rust-lang/rust#79202 Co-authored-by: kjeremy <[email protected]> Co-authored-by: Peter Wischer <[email protected]>
3 parents e0fc2af + 61092bd + f18fc5a commit a044ac9

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
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 {

crates/rust-analyzer/src/lsp_ext.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ pub struct SsrParams {
230230

231231
pub enum StatusNotification {}
232232

233-
#[serde(rename_all = "camelCase")]
234233
#[derive(Serialize, Deserialize)]
234+
#[serde(rename_all = "camelCase")]
235235
pub enum Status {
236236
Loading,
237237
ReadyPartial,

docs/dev/lsp-extensions.md

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

0 commit comments

Comments
 (0)