Skip to content

Commit 940fc4d

Browse files
tgross35cuviper
authored andcommitted
core: Update the feature gate on TryFrom<integer> for bool
This implementation was added recently in f12288e ("TryFrom<integer> for bool") but used an old feature gate and stabilization version. Update to reflect when these were actually added. (cherry picked from commit 02b516a)
1 parent 5dacf5d commit 940fc4d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • library/core/src/convert

library/core/src/convert/num.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ macro_rules! impl_try_from_both_bounded {
332332
/// Implement `TryFrom<integer>` for `bool`
333333
macro_rules! impl_try_from_integer_for_bool {
334334
($($int:ty)+) => {$(
335-
#[stable(feature = "try_from", since = "1.34.0")]
335+
#[stable(feature = "bool_try_from_int", since = "1.95.0")]
336336
#[rustc_const_unstable(feature = "const_convert", issue = "143773")]
337337
impl const TryFrom<$int> for bool {
338338
type Error = TryFromIntError;

0 commit comments

Comments
 (0)