Skip to content

Commit f417b88

Browse files
committed
Make nightly target compatible with every other target
1 parent ee3efc8 commit f417b88

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bindgen/features.rs

+3-1
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)