File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/tools/rust-analyzer/crates/proc-macro-srv/src/dylib Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -110,15 +110,15 @@ pub fn read_version(obj: &object::File<'_>) -> io::Result<String> {
110
110
) ) ;
111
111
}
112
112
let version = u32:: from_be_bytes ( [ dot_rustc[ 4 ] , dot_rustc[ 5 ] , dot_rustc[ 6 ] , dot_rustc[ 7 ] ] ) ;
113
- // Last supported version is:
113
+ // Last breaking version change is:
114
114
// https://github.com/rust-lang/rust/commit/b94cfefc860715fb2adf72a6955423d384c69318
115
115
let ( mut metadata_portion, bytes_before_version) = match version {
116
116
8 => {
117
117
let len_bytes = & dot_rustc[ 8 ..12 ] ;
118
118
let data_len = u32:: from_be_bytes ( len_bytes. try_into ( ) . unwrap ( ) ) as usize ;
119
119
( & dot_rustc[ 12 ..data_len + 12 ] , 13 )
120
120
}
121
- 9 => {
121
+ 9 | 10 => {
122
122
let len_bytes = & dot_rustc[ 8 ..16 ] ;
123
123
let data_len = u64:: from_le_bytes ( len_bytes. try_into ( ) . unwrap ( ) ) as usize ;
124
124
( & dot_rustc[ 16 ..data_len + 12 ] , 17 )
You can’t perform that action at this time.
0 commit comments