Skip to content

Commit e080cc5

Browse files
committed
Auto merge of #103802 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] branch 1.66 This PR: * Bumps version placeholders * Bumps CI channel to beta * Backports "rustdoc: add support for incoherent impls on structs and traits #103746"
2 parents 5e97720 + c2bb2e1 commit e080cc5

File tree

19 files changed

+136
-77
lines changed

19 files changed

+136
-77
lines changed

compiler/rustc_feature/src/accepted.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ declare_features! (
5454
/// Allows using ADX intrinsics from `core::arch::{x86, x86_64}`.
5555
(accepted, adx_target_feature, "1.61.0", Some(44839), None),
5656
/// Allows explicit discriminants on non-unit enum variants.
57-
(accepted, arbitrary_enum_discriminant, "CURRENT_RUSTC_VERSION", Some(60553), None),
57+
(accepted, arbitrary_enum_discriminant, "1.66.0", Some(60553), None),
5858
/// Allows using `sym` operands in inline assembly.
59-
(accepted, asm_sym, "CURRENT_RUSTC_VERSION", Some(93333), None),
59+
(accepted, asm_sym, "1.66.0", Some(93333), None),
6060
/// Allows the definition of associated constants in `trait` or `impl` blocks.
6161
(accepted, associated_consts, "1.20.0", Some(29646), None),
6262
/// Allows using associated `type`s in `trait`s.
@@ -174,7 +174,7 @@ declare_features! (
174174
// FIXME: explain `globs`.
175175
(accepted, globs, "1.0.0", None, None),
176176
/// Allows using `..=X` as a pattern.
177-
(accepted, half_open_range_patterns, "CURRENT_RUSTC_VERSION", Some(67264), None),
177+
(accepted, half_open_range_patterns, "1.66.0", Some(67264), None),
178178
/// Allows using the `u128` and `i128` types.
179179
(accepted, i128_type, "1.26.0", Some(35118), None),
180180
/// Allows the use of `if let` expressions.

compiler/rustc_feature/src/active.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ declare_features! (
309309
/// Allows `async || body` closures.
310310
(active, async_closure, "1.37.0", Some(62290), None),
311311
/// Alows async functions to be declared, implemented, and used in traits.
312-
(incomplete, async_fn_in_trait, "CURRENT_RUSTC_VERSION", Some(91611), None),
312+
(incomplete, async_fn_in_trait, "1.66.0", Some(91611), None),
313313
/// Allows `extern "C-unwind" fn` to enable unwinding across ABI boundaries.
314314
(active, c_unwind, "1.52.0", Some(74990), None),
315315
/// Allows using C-variadics.
@@ -409,7 +409,7 @@ declare_features! (
409409
/// Allows non-trivial generic constants which have to have wfness manually propagated to callers
410410
(incomplete, generic_const_exprs, "1.56.0", Some(76560), None),
411411
/// Allows using `..=X` as a patterns in slices.
412-
(active, half_open_range_patterns_in_slices, "CURRENT_RUSTC_VERSION", Some(67264), None),
412+
(active, half_open_range_patterns_in_slices, "1.66.0", Some(67264), None),
413413
/// Allows `if let` guard in match arms.
414414
(active, if_let_guard, "1.47.0", Some(51114), None),
415415
/// Allows using imported `main` function

library/alloc/src/boxed.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1659,7 +1659,7 @@ impl<T, const N: usize> TryFrom<Box<[T]>> for Box<[T; N]> {
16591659
}
16601660

16611661
#[cfg(not(no_global_oom_handling))]
1662-
#[stable(feature = "boxed_array_try_from_vec", since = "CURRENT_RUSTC_VERSION")]
1662+
#[stable(feature = "boxed_array_try_from_vec", since = "1.66.0")]
16631663
impl<T, const N: usize> TryFrom<Vec<T>> for Box<[T; N]> {
16641664
type Error = Vec<T>;
16651665

library/alloc/src/collections/btree/map.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ impl<K, V> BTreeMap<K, V> {
580580
/// map.insert(1, "a");
581581
/// ```
582582
#[stable(feature = "rust1", since = "1.0.0")]
583-
#[rustc_const_stable(feature = "const_btree_new", since = "CURRENT_RUSTC_VERSION")]
583+
#[rustc_const_stable(feature = "const_btree_new", since = "1.66.0")]
584584
#[must_use]
585585
pub const fn new() -> BTreeMap<K, V> {
586586
BTreeMap { root: None, length: 0, alloc: ManuallyDrop::new(Global), _marker: PhantomData }
@@ -711,7 +711,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
711711
/// map.insert(2, "a");
712712
/// assert_eq!(map.first_key_value(), Some((&1, &"b")));
713713
/// ```
714-
#[stable(feature = "map_first_last", since = "CURRENT_RUSTC_VERSION")]
714+
#[stable(feature = "map_first_last", since = "1.66.0")]
715715
pub fn first_key_value(&self) -> Option<(&K, &V)>
716716
where
717717
K: Ord,
@@ -739,7 +739,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
739739
/// assert_eq!(*map.get(&1).unwrap(), "first");
740740
/// assert_eq!(*map.get(&2).unwrap(), "b");
741741
/// ```
742-
#[stable(feature = "map_first_last", since = "CURRENT_RUSTC_VERSION")]
742+
#[stable(feature = "map_first_last", since = "1.66.0")]
743743
pub fn first_entry(&mut self) -> Option<OccupiedEntry<'_, K, V, A>>
744744
where
745745
K: Ord,
@@ -773,7 +773,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
773773
/// }
774774
/// assert!(map.is_empty());
775775
/// ```
776-
#[stable(feature = "map_first_last", since = "CURRENT_RUSTC_VERSION")]
776+
#[stable(feature = "map_first_last", since = "1.66.0")]
777777
pub fn pop_first(&mut self) -> Option<(K, V)>
778778
where
779779
K: Ord,
@@ -796,7 +796,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
796796
/// map.insert(2, "a");
797797
/// assert_eq!(map.last_key_value(), Some((&2, &"a")));
798798
/// ```
799-
#[stable(feature = "map_first_last", since = "CURRENT_RUSTC_VERSION")]
799+
#[stable(feature = "map_first_last", since = "1.66.0")]
800800
pub fn last_key_value(&self) -> Option<(&K, &V)>
801801
where
802802
K: Ord,
@@ -824,7 +824,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
824824
/// assert_eq!(*map.get(&1).unwrap(), "a");
825825
/// assert_eq!(*map.get(&2).unwrap(), "last");
826826
/// ```
827-
#[stable(feature = "map_first_last", since = "CURRENT_RUSTC_VERSION")]
827+
#[stable(feature = "map_first_last", since = "1.66.0")]
828828
pub fn last_entry(&mut self) -> Option<OccupiedEntry<'_, K, V, A>>
829829
where
830830
K: Ord,
@@ -858,7 +858,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
858858
/// }
859859
/// assert!(map.is_empty());
860860
/// ```
861-
#[stable(feature = "map_first_last", since = "CURRENT_RUSTC_VERSION")]
861+
#[stable(feature = "map_first_last", since = "1.66.0")]
862862
pub fn pop_last(&mut self) -> Option<(K, V)>
863863
where
864864
K: Ord,

library/alloc/src/collections/btree/set.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ impl<T> BTreeSet<T> {
343343
/// let mut set: BTreeSet<i32> = BTreeSet::new();
344344
/// ```
345345
#[stable(feature = "rust1", since = "1.0.0")]
346-
#[rustc_const_stable(feature = "const_btree_new", since = "CURRENT_RUSTC_VERSION")]
346+
#[rustc_const_stable(feature = "const_btree_new", since = "1.66.0")]
347347
#[must_use]
348348
pub const fn new() -> BTreeSet<T> {
349349
BTreeSet { map: BTreeMap::new() }
@@ -796,7 +796,7 @@ impl<T, A: Allocator + Clone> BTreeSet<T, A> {
796796
/// assert_eq!(set.first(), Some(&1));
797797
/// ```
798798
#[must_use]
799-
#[stable(feature = "map_first_last", since = "CURRENT_RUSTC_VERSION")]
799+
#[stable(feature = "map_first_last", since = "1.66.0")]
800800
pub fn first(&self) -> Option<&T>
801801
where
802802
T: Ord,
@@ -822,7 +822,7 @@ impl<T, A: Allocator + Clone> BTreeSet<T, A> {
822822
/// assert_eq!(set.last(), Some(&2));
823823
/// ```
824824
#[must_use]
825-
#[stable(feature = "map_first_last", since = "CURRENT_RUSTC_VERSION")]
825+
#[stable(feature = "map_first_last", since = "1.66.0")]
826826
pub fn last(&self) -> Option<&T>
827827
where
828828
T: Ord,
@@ -846,7 +846,7 @@ impl<T, A: Allocator + Clone> BTreeSet<T, A> {
846846
/// }
847847
/// assert!(set.is_empty());
848848
/// ```
849-
#[stable(feature = "map_first_last", since = "CURRENT_RUSTC_VERSION")]
849+
#[stable(feature = "map_first_last", since = "1.66.0")]
850850
pub fn pop_first(&mut self) -> Option<T>
851851
where
852852
T: Ord,
@@ -870,7 +870,7 @@ impl<T, A: Allocator + Clone> BTreeSet<T, A> {
870870
/// }
871871
/// assert!(set.is_empty());
872872
/// ```
873-
#[stable(feature = "map_first_last", since = "CURRENT_RUSTC_VERSION")]
873+
#[stable(feature = "map_first_last", since = "1.66.0")]
874874
pub fn pop_last(&mut self) -> Option<T>
875875
where
876876
T: Ord,

library/core/src/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ impl Error for crate::char::ParseCharError {
493493
}
494494
}
495495

496-
#[stable(feature = "duration_checked_float", since = "CURRENT_RUSTC_VERSION")]
496+
#[stable(feature = "duration_checked_float", since = "1.66.0")]
497497
impl Error for crate::time::TryFromFloatSecsError {}
498498

499499
#[stable(feature = "frombyteswithnulerror_impls", since = "1.17.0")]

library/core/src/hint.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ pub fn spin_loop() {
220220
///
221221
/// [`std::convert::identity`]: crate::convert::identity
222222
#[inline]
223-
#[stable(feature = "bench_black_box", since = "CURRENT_RUSTC_VERSION")]
223+
#[stable(feature = "bench_black_box", since = "1.66.0")]
224224
#[rustc_const_unstable(feature = "const_black_box", issue = "none")]
225225
pub const fn black_box<T>(dummy: T) -> T {
226226
crate::intrinsics::black_box(dummy)

library/core/src/num/int_macros.rs

+16-16
Original file line numberDiff line numberDiff line change
@@ -467,8 +467,8 @@ macro_rules! int_impl {
467467
#[doc = concat!("assert_eq!(1", stringify!($SelfT), ".checked_add_unsigned(2), Some(3));")]
468468
#[doc = concat!("assert_eq!((", stringify!($SelfT), "::MAX - 2).checked_add_unsigned(3), None);")]
469469
/// ```
470-
#[stable(feature = "mixed_integer_ops", since = "CURRENT_RUSTC_VERSION")]
471-
#[rustc_const_stable(feature = "mixed_integer_ops", since = "CURRENT_RUSTC_VERSION")]
470+
#[stable(feature = "mixed_integer_ops", since = "1.66.0")]
471+
#[rustc_const_stable(feature = "mixed_integer_ops", since = "1.66.0")]
472472
#[must_use = "this returns the result of the operation, \
473473
without modifying the original"]
474474
#[inline]
@@ -535,8 +535,8 @@ macro_rules! int_impl {
535535
#[doc = concat!("assert_eq!(1", stringify!($SelfT), ".checked_sub_unsigned(2), Some(-1));")]
536536
#[doc = concat!("assert_eq!((", stringify!($SelfT), "::MIN + 2).checked_sub_unsigned(3), None);")]
537537
/// ```
538-
#[stable(feature = "mixed_integer_ops", since = "CURRENT_RUSTC_VERSION")]
539-
#[rustc_const_stable(feature = "mixed_integer_ops", since = "CURRENT_RUSTC_VERSION")]
538+
#[stable(feature = "mixed_integer_ops", since = "1.66.0")]
539+
#[rustc_const_stable(feature = "mixed_integer_ops", since = "1.66.0")]
540540
#[must_use = "this returns the result of the operation, \
541541
without modifying the original"]
542542
#[inline]
@@ -905,8 +905,8 @@ macro_rules! int_impl {
905905
#[doc = concat!("assert_eq!(1", stringify!($SelfT), ".saturating_add_unsigned(2), 3);")]
906906
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MAX.saturating_add_unsigned(100), ", stringify!($SelfT), "::MAX);")]
907907
/// ```
908-
#[stable(feature = "mixed_integer_ops", since = "CURRENT_RUSTC_VERSION")]
909-
#[rustc_const_stable(feature = "mixed_integer_ops", since = "CURRENT_RUSTC_VERSION")]
908+
#[stable(feature = "mixed_integer_ops", since = "1.66.0")]
909+
#[rustc_const_stable(feature = "mixed_integer_ops", since = "1.66.0")]
910910
#[must_use = "this returns the result of the operation, \
911911
without modifying the original"]
912912
#[inline]
@@ -951,8 +951,8 @@ macro_rules! int_impl {
951951
#[doc = concat!("assert_eq!(100", stringify!($SelfT), ".saturating_sub_unsigned(127), -27);")]
952952
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MIN.saturating_sub_unsigned(100), ", stringify!($SelfT), "::MIN);")]
953953
/// ```
954-
#[stable(feature = "mixed_integer_ops", since = "CURRENT_RUSTC_VERSION")]
955-
#[rustc_const_stable(feature = "mixed_integer_ops", since = "CURRENT_RUSTC_VERSION")]
954+
#[stable(feature = "mixed_integer_ops", since = "1.66.0")]
955+
#[rustc_const_stable(feature = "mixed_integer_ops", since = "1.66.0")]
956956
#[must_use = "this returns the result of the operation, \
957957
without modifying the original"]
958958
#[inline]
@@ -1129,8 +1129,8 @@ macro_rules! int_impl {
11291129
#[doc = concat!("assert_eq!(100", stringify!($SelfT), ".wrapping_add_unsigned(27), 127);")]
11301130
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MAX.wrapping_add_unsigned(2), ", stringify!($SelfT), "::MIN + 1);")]
11311131
/// ```
1132-
#[stable(feature = "mixed_integer_ops", since = "CURRENT_RUSTC_VERSION")]
1133-
#[rustc_const_stable(feature = "mixed_integer_ops", since = "CURRENT_RUSTC_VERSION")]
1132+
#[stable(feature = "mixed_integer_ops", since = "1.66.0")]
1133+
#[rustc_const_stable(feature = "mixed_integer_ops", since = "1.66.0")]
11341134
#[must_use = "this returns the result of the operation, \
11351135
without modifying the original"]
11361136
#[inline(always)]
@@ -1169,8 +1169,8 @@ macro_rules! int_impl {
11691169
#[doc = concat!("assert_eq!(0", stringify!($SelfT), ".wrapping_sub_unsigned(127), -127);")]
11701170
#[doc = concat!("assert_eq!((-2", stringify!($SelfT), ").wrapping_sub_unsigned(", stringify!($UnsignedT), "::MAX), -1);")]
11711171
/// ```
1172-
#[stable(feature = "mixed_integer_ops", since = "CURRENT_RUSTC_VERSION")]
1173-
#[rustc_const_stable(feature = "mixed_integer_ops", since = "CURRENT_RUSTC_VERSION")]
1172+
#[stable(feature = "mixed_integer_ops", since = "1.66.0")]
1173+
#[rustc_const_stable(feature = "mixed_integer_ops", since = "1.66.0")]
11741174
#[must_use = "this returns the result of the operation, \
11751175
without modifying the original"]
11761176
#[inline(always)]
@@ -1566,8 +1566,8 @@ macro_rules! int_impl {
15661566
#[doc = concat!("assert_eq!((", stringify!($SelfT), "::MIN).overflowing_add_unsigned(", stringify!($UnsignedT), "::MAX), (", stringify!($SelfT), "::MAX, false));")]
15671567
#[doc = concat!("assert_eq!((", stringify!($SelfT), "::MAX - 2).overflowing_add_unsigned(3), (", stringify!($SelfT), "::MIN, true));")]
15681568
/// ```
1569-
#[stable(feature = "mixed_integer_ops", since = "CURRENT_RUSTC_VERSION")]
1570-
#[rustc_const_stable(feature = "mixed_integer_ops", since = "CURRENT_RUSTC_VERSION")]
1569+
#[stable(feature = "mixed_integer_ops", since = "1.66.0")]
1570+
#[rustc_const_stable(feature = "mixed_integer_ops", since = "1.66.0")]
15711571
#[must_use = "this returns the result of the operation, \
15721572
without modifying the original"]
15731573
#[inline]
@@ -1648,8 +1648,8 @@ macro_rules! int_impl {
16481648
#[doc = concat!("assert_eq!((", stringify!($SelfT), "::MAX).overflowing_sub_unsigned(", stringify!($UnsignedT), "::MAX), (", stringify!($SelfT), "::MIN, false));")]
16491649
#[doc = concat!("assert_eq!((", stringify!($SelfT), "::MIN + 2).overflowing_sub_unsigned(3), (", stringify!($SelfT), "::MAX, true));")]
16501650
/// ```
1651-
#[stable(feature = "mixed_integer_ops", since = "CURRENT_RUSTC_VERSION")]
1652-
#[rustc_const_stable(feature = "mixed_integer_ops", since = "CURRENT_RUSTC_VERSION")]
1651+
#[stable(feature = "mixed_integer_ops", since = "1.66.0")]
1652+
#[rustc_const_stable(feature = "mixed_integer_ops", since = "1.66.0")]
16531653
#[must_use = "this returns the result of the operation, \
16541654
without modifying the original"]
16551655
#[inline]

library/core/src/num/uint_macros.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,8 @@ macro_rules! uint_impl {
478478
#[doc = concat!("assert_eq!(1", stringify!($SelfT), ".checked_add_signed(-2), None);")]
479479
#[doc = concat!("assert_eq!((", stringify!($SelfT), "::MAX - 2).checked_add_signed(3), None);")]
480480
/// ```
481-
#[stable(feature = "mixed_integer_ops", since = "CURRENT_RUSTC_VERSION")]
482-
#[rustc_const_stable(feature = "mixed_integer_ops", since = "CURRENT_RUSTC_VERSION")]
481+
#[stable(feature = "mixed_integer_ops", since = "1.66.0")]
482+
#[rustc_const_stable(feature = "mixed_integer_ops", since = "1.66.0")]
483483
#[must_use = "this returns the result of the operation, \
484484
without modifying the original"]
485485
#[inline]
@@ -1025,8 +1025,8 @@ macro_rules! uint_impl {
10251025
#[doc = concat!("assert_eq!(1", stringify!($SelfT), ".saturating_add_signed(-2), 0);")]
10261026
#[doc = concat!("assert_eq!((", stringify!($SelfT), "::MAX - 2).saturating_add_signed(4), ", stringify!($SelfT), "::MAX);")]
10271027
/// ```
1028-
#[stable(feature = "mixed_integer_ops", since = "CURRENT_RUSTC_VERSION")]
1029-
#[rustc_const_stable(feature = "mixed_integer_ops", since = "CURRENT_RUSTC_VERSION")]
1028+
#[stable(feature = "mixed_integer_ops", since = "1.66.0")]
1029+
#[rustc_const_stable(feature = "mixed_integer_ops", since = "1.66.0")]
10301030
#[must_use = "this returns the result of the operation, \
10311031
without modifying the original"]
10321032
#[inline]
@@ -1165,8 +1165,8 @@ macro_rules! uint_impl {
11651165
#[doc = concat!("assert_eq!(1", stringify!($SelfT), ".wrapping_add_signed(-2), ", stringify!($SelfT), "::MAX);")]
11661166
#[doc = concat!("assert_eq!((", stringify!($SelfT), "::MAX - 2).wrapping_add_signed(4), 1);")]
11671167
/// ```
1168-
#[stable(feature = "mixed_integer_ops", since = "CURRENT_RUSTC_VERSION")]
1169-
#[rustc_const_stable(feature = "mixed_integer_ops", since = "CURRENT_RUSTC_VERSION")]
1168+
#[stable(feature = "mixed_integer_ops", since = "1.66.0")]
1169+
#[rustc_const_stable(feature = "mixed_integer_ops", since = "1.66.0")]
11701170
#[must_use = "this returns the result of the operation, \
11711171
without modifying the original"]
11721172
#[inline]
@@ -1534,8 +1534,8 @@ macro_rules! uint_impl {
15341534
#[doc = concat!("assert_eq!(1", stringify!($SelfT), ".overflowing_add_signed(-2), (", stringify!($SelfT), "::MAX, true));")]
15351535
#[doc = concat!("assert_eq!((", stringify!($SelfT), "::MAX - 2).overflowing_add_signed(4), (1, true));")]
15361536
/// ```
1537-
#[stable(feature = "mixed_integer_ops", since = "CURRENT_RUSTC_VERSION")]
1538-
#[rustc_const_stable(feature = "mixed_integer_ops", since = "CURRENT_RUSTC_VERSION")]
1537+
#[stable(feature = "mixed_integer_ops", since = "1.66.0")]
1538+
#[rustc_const_stable(feature = "mixed_integer_ops", since = "1.66.0")]
15391539
#[must_use = "this returns the result of the operation, \
15401540
without modifying the original"]
15411541
#[inline]

library/core/src/option.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1720,7 +1720,7 @@ impl<T, U> Option<(T, U)> {
17201720
/// assert_eq!(y.unzip(), (None, None));
17211721
/// ```
17221722
#[inline]
1723-
#[stable(feature = "unzip_option", since = "CURRENT_RUSTC_VERSION")]
1723+
#[stable(feature = "unzip_option", since = "1.66.0")]
17241724
#[rustc_const_unstable(feature = "const_option", issue = "67441")]
17251725
pub const fn unzip(self) -> (Option<T>, Option<U>)
17261726
where

library/core/src/time.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,7 @@ impl fmt::Debug for Duration {
12321232
/// }
12331233
/// ```
12341234
#[derive(Debug, Clone, PartialEq, Eq)]
1235-
#[stable(feature = "duration_checked_float", since = "CURRENT_RUSTC_VERSION")]
1235+
#[stable(feature = "duration_checked_float", since = "1.66.0")]
12361236
pub struct TryFromFloatSecsError {
12371237
kind: TryFromFloatSecsErrorKind,
12381238
}
@@ -1250,7 +1250,7 @@ impl TryFromFloatSecsError {
12501250
}
12511251
}
12521252

1253-
#[stable(feature = "duration_checked_float", since = "CURRENT_RUSTC_VERSION")]
1253+
#[stable(feature = "duration_checked_float", since = "1.66.0")]
12541254
impl fmt::Display for TryFromFloatSecsError {
12551255
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
12561256
self.description().fmt(f)
@@ -1401,7 +1401,7 @@ impl Duration {
14011401
/// let res = Duration::try_from_secs_f32(val);
14021402
/// assert_eq!(res, Ok(Duration::new(1, 2_929_688)));
14031403
/// ```
1404-
#[stable(feature = "duration_checked_float", since = "CURRENT_RUSTC_VERSION")]
1404+
#[stable(feature = "duration_checked_float", since = "1.66.0")]
14051405
#[rustc_const_unstable(feature = "duration_consts_float", issue = "72440")]
14061406
#[inline]
14071407
pub const fn try_from_secs_f32(secs: f32) -> Result<Duration, TryFromFloatSecsError> {
@@ -1478,7 +1478,7 @@ impl Duration {
14781478
/// let res = Duration::try_from_secs_f64(val);
14791479
/// assert_eq!(res, Ok(Duration::new(1, 2_929_688)));
14801480
/// ```
1481-
#[stable(feature = "duration_checked_float", since = "CURRENT_RUSTC_VERSION")]
1481+
#[stable(feature = "duration_checked_float", since = "1.66.0")]
14821482
#[rustc_const_unstable(feature = "duration_consts_float", issue = "72440")]
14831483
#[inline]
14841484
pub const fn try_from_secs_f64(secs: f64) -> Result<Duration, TryFromFloatSecsError> {

library/proc_macro/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ impl Span {
546546
/// Note: The observable result of a macro should only rely on the tokens and
547547
/// not on this source text. The result of this function is a best effort to
548548
/// be used for diagnostics only.
549-
#[stable(feature = "proc_macro_source_text", since = "CURRENT_RUSTC_VERSION")]
549+
#[stable(feature = "proc_macro_source_text", since = "1.66.0")]
550550
pub fn source_text(&self) -> Option<String> {
551551
self.0.source_text()
552552
}

library/std/src/time.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ use crate::sys_common::{FromInner, IntoInner};
4343
#[stable(feature = "time", since = "1.3.0")]
4444
pub use core::time::Duration;
4545

46-
#[stable(feature = "duration_checked_float", since = "CURRENT_RUSTC_VERSION")]
46+
#[stable(feature = "duration_checked_float", since = "1.66.0")]
4747
pub use core::time::TryFromFloatSecsError;
4848

4949
/// A measurement of a monotonically nondecreasing clock.

0 commit comments

Comments
 (0)