Skip to content

Commit 14a51d2

Browse files
alexjgbjorn3
andcommitted
check rustc major version == 1 not < 1
Co-authored-by: bjorn3 <[email protected]>
1 parent 39b8d10 commit 14a51d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/proc_macro_srv/src/dylib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ impl TryFrom<RustCInfo> for ProcMacroABI {
9292
type Error = LoadProcMacroDylibError;
9393

9494
fn try_from(info: RustCInfo) -> Result<Self, Self::Error> {
95-
if info.version.0 < 1 {
95+
if info.version.0 != 1 {
9696
Err(LoadProcMacroDylibError::UnsupportedABI)
9797
} else if info.version.1 < 47 {
9898
Err(LoadProcMacroDylibError::UnsupportedABI)

0 commit comments

Comments
 (0)