Skip to content

Commit 60e95e7

Browse files
committed
Update proc-macro-api for the new rustc metadata format
1 parent 62314be commit 60e95e7

File tree

1 file changed

+1
-1
lines changed
  • src/tools/rust-analyzer/crates/proc-macro-api/src

1 file changed

+1
-1
lines changed

src/tools/rust-analyzer/crates/proc-macro-api/src/version.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ pub fn read_version(dylib_path: &AbsPath) -> io::Result<String> {
122122
// https://github.com/rust-lang/rust/commit/0696e79f2740ad89309269b460579e548a5cd632
123123
let snappy_portion = match version {
124124
5 | 6 => &dot_rustc[8..],
125-
7 => {
125+
7 | 8 => {
126126
let len_bytes = &dot_rustc[8..12];
127127
let data_len = u32::from_be_bytes(len_bytes.try_into().unwrap()) as usize;
128128
&dot_rustc[12..data_len + 12]

0 commit comments

Comments
 (0)