about summary refs log tree commit diff
diff options
context:
space:
mode:
authorjyn <github@jyn.dev>2023-05-26 11:59:25 -0500
committerjyn <github@jyn.dev>2023-05-26 11:59:25 -0500
commit60e95e76d059e3bbeb19d819914df3bcf7684a82 (patch)
tree7ac4101fbad00a88d6bdae8b9adf7d30485f9618
parent62314be705aee343870f3bc36cb5eb7e89ef6269 (diff)
downloadrust-60e95e76d059e3bbeb19d819914df3bcf7684a82.tar.gz
rust-60e95e76d059e3bbeb19d819914df3bcf7684a82.zip
Update proc-macro-api for the new rustc metadata format
-rw-r--r--src/tools/rust-analyzer/crates/proc-macro-api/src/version.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/crates/proc-macro-api/src/version.rs b/src/tools/rust-analyzer/crates/proc-macro-api/src/version.rs
index cf637ec359a..13f67a0128a 100644
--- a/src/tools/rust-analyzer/crates/proc-macro-api/src/version.rs
+++ b/src/tools/rust-analyzer/crates/proc-macro-api/src/version.rs
@@ -122,7 +122,7 @@ pub fn read_version(dylib_path: &AbsPath) -> io::Result<String> {
     // https://github.com/rust-lang/rust/commit/0696e79f2740ad89309269b460579e548a5cd632
     let snappy_portion = match version {
         5 | 6 => &dot_rustc[8..],
-        7 => {
+        7 | 8 => {
             let len_bytes = &dot_rustc[8..12];
             let data_len = u32::from_be_bytes(len_bytes.try_into().unwrap()) as usize;
             &dot_rustc[12..data_len + 12]