mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 05:08:52 +00:00
Bump object
This commit is contained in:
parent
47afa4a5fc
commit
d525cfc85a
4 changed files with 6 additions and 12 deletions
12
Cargo.lock
generated
12
Cargo.lock
generated
|
@ -81,7 +81,7 @@ dependencies = [
|
||||||
"cfg-if",
|
"cfg-if",
|
||||||
"libc",
|
"libc",
|
||||||
"miniz_oxide",
|
"miniz_oxide",
|
||||||
"object 0.24.0",
|
"object",
|
||||||
"rustc-demangle",
|
"rustc-demangle",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -993,12 +993,6 @@ dependencies = [
|
||||||
"libc",
|
"libc",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "object"
|
|
||||||
version = "0.23.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "a9a7ab5d64814df0fe4a4b5ead45ed6c5f181ee3ff04ba344313a6c80446c5d4"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "object"
|
name = "object"
|
||||||
version = "0.24.0"
|
version = "0.24.0"
|
||||||
|
@ -1146,7 +1140,7 @@ dependencies = [
|
||||||
"jod-thread",
|
"jod-thread",
|
||||||
"log",
|
"log",
|
||||||
"memmap2",
|
"memmap2",
|
||||||
"object 0.23.0",
|
"object",
|
||||||
"profile",
|
"profile",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
|
@ -1163,7 +1157,7 @@ dependencies = [
|
||||||
"libloading",
|
"libloading",
|
||||||
"mbe",
|
"mbe",
|
||||||
"memmap2",
|
"memmap2",
|
||||||
"object 0.23.0",
|
"object",
|
||||||
"proc_macro_api",
|
"proc_macro_api",
|
||||||
"proc_macro_test",
|
"proc_macro_test",
|
||||||
"serde_derive",
|
"serde_derive",
|
||||||
|
|
|
@ -16,7 +16,7 @@ log = "0.4.8"
|
||||||
crossbeam-channel = "0.5.0"
|
crossbeam-channel = "0.5.0"
|
||||||
jod-thread = "0.1.1"
|
jod-thread = "0.1.1"
|
||||||
memmap2 = "0.2.0"
|
memmap2 = "0.2.0"
|
||||||
object = { version = "0.23.0", default-features = false, features = ["std", "read_core", "elf", "macho", "pe", "unaligned"] }
|
object = { version = "0.24", default-features = false, features = ["std", "read_core", "elf", "macho", "pe", "unaligned"] }
|
||||||
snap = "1.0"
|
snap = "1.0"
|
||||||
|
|
||||||
tt = { path = "../tt", version = "0.0.0" }
|
tt = { path = "../tt", version = "0.0.0" }
|
||||||
|
|
|
@ -10,7 +10,7 @@ edition = "2018"
|
||||||
doctest = false
|
doctest = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
object = { version = "0.23", default-features = false, features = ["std", "read_core", "elf", "macho", "pe"] }
|
object = { version = "0.24", default-features = false, features = ["std", "read_core", "elf", "macho", "pe"] }
|
||||||
libloading = "0.7.0"
|
libloading = "0.7.0"
|
||||||
memmap2 = "0.2.0"
|
memmap2 = "0.2.0"
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ fn find_registrar_symbol(file: &Path) -> io::Result<Option<String>> {
|
||||||
let file = File::open(file)?;
|
let file = File::open(file)?;
|
||||||
let buffer = unsafe { Mmap::map(&file)? };
|
let buffer = unsafe { Mmap::map(&file)? };
|
||||||
|
|
||||||
Ok(object::File::parse(&buffer)
|
Ok(object::File::parse(&*buffer)
|
||||||
.map_err(invalid_data_err)?
|
.map_err(invalid_data_err)?
|
||||||
.exports()
|
.exports()
|
||||||
.map_err(invalid_data_err)?
|
.map_err(invalid_data_err)?
|
||||||
|
|
Loading…
Reference in a new issue