8716: Replace `memmap` with `memmap2` in `proc_macro_api` r=edwin0cheng a=memoryruins

#7522 did the same for `proc_macro_srv` before this usage of `memmap` was introduced to `proc_macro_api` in #6822 .

Something like [`cargo-deny`](https://github.com/EmbarkStudios/cargo-deny-action) could help prevent specific crates (and versions, licenses, etc) from being introduced into the crate tree, but that's unrelated to this pull request.



Co-authored-by: memoryruins <memoryruinsmusic@gmail.com>
This commit is contained in:
bors[bot] 2021-05-04 03:41:48 +00:00 committed by GitHub
commit 2350b3f05f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 13 deletions

12
Cargo.lock generated
View file

@ -902,16 +902,6 @@ version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b16bd47d9e329435e309c58469fe0791c2d0d1ba96ec0954152a5ae2b04387dc"
[[package]]
name = "memmap"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6585fd95e7bb50d6cc31e20d4cf9afb4e2ba16c5846fc76793f11218da9c475b"
dependencies = [
"libc",
"winapi",
]
[[package]]
name = "memmap2"
version = "0.2.2"
@ -1174,7 +1164,7 @@ dependencies = [
"crossbeam-channel",
"jod-thread",
"log",
"memmap",
"memmap2",
"object",
"profile",
"serde",

View file

@ -15,7 +15,7 @@ serde_json = { version = "1.0", features = ["unbounded_depth"] }
log = "0.4.8"
crossbeam-channel = "0.5.0"
jod-thread = "0.1.1"
memmap = "0.7.0"
memmap2 = "0.2.0"
object = { version = "0.23.0", default-features = false, features = ["std", "read_core", "elf", "macho", "pe", "unaligned"] }
snap = "1.0"

View file

@ -6,7 +6,7 @@ use std::{
path::Path,
};
use memmap::Mmap;
use memmap2::Mmap;
use object::read::{File as BinaryFile, Object, ObjectSection};
use snap::read::FrameDecoder as SnapDecoder;