diff --git a/crates/proc-macro-api/src/version.rs b/crates/proc-macro-api/src/version.rs index ad0e8942c4..cf637ec359 100644 --- a/crates/proc-macro-api/src/version.rs +++ b/crates/proc-macro-api/src/version.rs @@ -126,7 +126,7 @@ pub fn read_version(dylib_path: &AbsPath) -> io::Result { 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] - }, + } _ => { return Err(io::Error::new( io::ErrorKind::InvalidData,