diff options
| author | jyn <github@jyn.dev> | 2023-05-26 11:59:25 -0500 |
|---|---|---|
| committer | jyn <github@jyn.dev> | 2023-05-26 11:59:25 -0500 |
| commit | aa65395c496083d96206c6f4c331a56382b4c0da (patch) | |
| tree | 170cb987aa748f1aca08304f399aa5c6eff0450e | |
| parent | 35940bcda31299852ec220a6d21c189b5ff01fd5 (diff) | |
| download | rust-aa65395c496083d96206c6f4c331a56382b4c0da.tar.gz rust-aa65395c496083d96206c6f4c331a56382b4c0da.zip | |
Update proc-macro-api for the new rustc metadata format
| -rw-r--r-- | crates/proc-macro-api/src/version.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/proc-macro-api/src/version.rs b/crates/proc-macro-api/src/version.rs index cf637ec359a..13f67a0128a 100644 --- a/crates/proc-macro-api/src/version.rs +++ b/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] |
