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> {
110110 ) ) ; 
111111 } 
112112 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: 
114114 // https://github.com/rust-lang/rust/commit/b94cfefc860715fb2adf72a6955423d384c69318 
115115 let  ( mut  metadata_portion,  bytes_before_version)  = match  version { 
116116 8  => { 
117117 let  len_bytes = & dot_rustc[ 8 ..12 ] ; 
118118 let  data_len = u32:: from_be_bytes ( len_bytes. try_into ( ) . unwrap ( ) )  as  usize ; 
119119 ( & dot_rustc[ 12 ..data_len + 12 ] ,  13 ) 
120120 } 
121-  9  => { 
121+  9  |  10   => { 
122122 let  len_bytes = & dot_rustc[ 8 ..16 ] ; 
123123 let  data_len = u64:: from_le_bytes ( len_bytes. try_into ( ) . unwrap ( ) )  as  usize ; 
124124 ( & dot_rustc[ 16 ..data_len + 12 ] ,  17 ) 
                         You can’t perform that action at this time. 
           
                  
0 commit comments