Rollup merge of #154691 - tgross35:bool-try-from-int, r=cuviper

core: Update the feature gate on `TryFrom<integer> for bool`

This implementation was added recently in f12288ec26 ("TryFrom<integer> for bool") but used an old feature gate and stabilization version. Update to reflect when these were actually added.
This commit is contained in:
Jacob Pratt
2026-04-02 20:53:33 -04:00
committed by GitHub
+1 -1
View File
@@ -330,7 +330,7 @@ fn try_from(u: $source) -> Result<Self, Self::Error> {
/// Implement `TryFrom<integer>` for `bool`
macro_rules! impl_try_from_integer_for_bool {
($($int:ty)+) => {$(
#[stable(feature = "try_from", since = "1.34.0")]
#[stable(feature = "bool_try_from_int", since = "1.95.0")]
#[rustc_const_unstable(feature = "const_convert", issue = "143773")]
impl const TryFrom<$int> for bool {
type Error = TryFromIntError;