From 02b516afd99d5796672543e50529a002200858ff Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Wed, 1 Apr 2026 14:30:44 -0400 Subject: [PATCH] core: Update the feature gate on `TryFrom for bool` This implementation was added recently in f12288ec2632 ("TryFrom for bool") but used an old feature gate and stabilization version. Update to reflect when these were actually added. --- library/core/src/convert/num.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/convert/num.rs b/library/core/src/convert/num.rs index b80980219b1e..673245056e79 100644 --- a/library/core/src/convert/num.rs +++ b/library/core/src/convert/num.rs @@ -330,7 +330,7 @@ fn try_from(u: $source) -> Result { /// Implement `TryFrom` 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;