Skip to content

Commit 1945b0d

Browse files
pvdrzemilio
authored andcommitted
Make nightly target compatible with every other target
1 parent 869cd65 commit 1945b0d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bindgen/features.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ impl RustTarget {
3838
// fixes.
3939
minor >= other_minor
4040
}
41-
(_, Version::Nightly) => false,
41+
// Nightly is compatible with everything
4242
(Version::Nightly, _) => true,
43+
// No stable release is compatible with nightly
44+
(Version::Stable { .. }, Version::Nightly) => false,
4345
}
4446
}
4547
}

0 commit comments

Comments
 (0)