Skip to content

Commit

Permalink
Make nightly target compatible with every other target
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdrz authored and emilio committed Nov 30, 2024
1 parent 869cd65 commit 1945b0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bindgen/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ impl RustTarget {
// fixes.
minor >= other_minor
}
(_, Version::Nightly) => false,
// Nightly is compatible with everything
(Version::Nightly, _) => true,
// No stable release is compatible with nightly
(Version::Stable { .. }, Version::Nightly) => false,
}
}
}
Expand Down

0 comments on commit 1945b0d

Please sign in to comment.