Skip to content

Commit 6b544f5

Browse files
committed
Auto merge of rust-lang#124476 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] 1.79 promotion https://forge.rust-lang.org/release/process.html#promote-branches-t-3-days-monday r? `@Mark-Simulacrum`
2 parents 0986358 + 532195d commit 6b544f5

File tree

26 files changed

+86
-80
lines changed

26 files changed

+86
-80
lines changed

compiler/rustc_data_structures/src/sync.rs

+6
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ use std::collections::HashMap;
4646
use std::hash::{BuildHasher, Hash};
4747

4848
mod lock;
49+
#[doc(no_inline)]
4950
pub use lock::{Lock, LockGuard, Mode};
5051

5152
mod worker_local;
@@ -199,10 +200,15 @@ cfg_match! {
199200

200201
pub use std::rc::Rc as Lrc;
201202
pub use std::rc::Weak as Weak;
203+
#[doc(no_inline)]
202204
pub use std::cell::Ref as ReadGuard;
205+
#[doc(no_inline)]
203206
pub use std::cell::Ref as MappedReadGuard;
207+
#[doc(no_inline)]
204208
pub use std::cell::RefMut as WriteGuard;
209+
#[doc(no_inline)]
205210
pub use std::cell::RefMut as MappedWriteGuard;
211+
#[doc(no_inline)]
206212
pub use std::cell::RefMut as MappedLockGuard;
207213

208214
pub use std::cell::OnceCell as OnceLock;

compiler/rustc_feature/src/accepted.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ declare_features! (
6060
/// Allows the definition of associated constants in `trait` or `impl` blocks.
6161
(accepted, associated_consts, "1.20.0", Some(29646)),
6262
/// Allows the user of associated type bounds.
63-
(accepted, associated_type_bounds, "CURRENT_RUSTC_VERSION", Some(52662)),
63+
(accepted, associated_type_bounds, "1.79.0", Some(52662)),
6464
/// Allows using associated `type`s in `trait`s.
6565
(accepted, associated_types, "1.0.0", None),
6666
/// Allows free and inherent `async fn`s, `async` blocks, and `<expr>.await` expressions.
@@ -99,7 +99,7 @@ declare_features! (
9999
/// Allows using the CMPXCHG16B target feature.
100100
(accepted, cmpxchg16b_target_feature, "1.69.0", Some(44839)),
101101
/// Allows use of the `#[collapse_debuginfo]` attribute.
102-
(accepted, collapse_debuginfo, "CURRENT_RUSTC_VERSION", Some(100758)),
102+
(accepted, collapse_debuginfo, "1.79.0", Some(100758)),
103103
/// Allows usage of the `compile_error!` macro.
104104
(accepted, compile_error, "1.20.0", Some(40872)),
105105
/// Allows `impl Trait` in function return types.
@@ -208,13 +208,13 @@ declare_features! (
208208
/// Allows referencing `Self` and projections in impl-trait.
209209
(accepted, impl_trait_projections, "1.74.0", Some(103532)),
210210
/// Allows using imported `main` function
211-
(accepted, imported_main, "CURRENT_RUSTC_VERSION", Some(28937)),
211+
(accepted, imported_main, "1.79.0", Some(28937)),
212212
/// Allows using `a..=b` and `..=b` as inclusive range syntaxes.
213213
(accepted, inclusive_range_syntax, "1.26.0", Some(28237)),
214214
/// Allows inferring outlives requirements (RFC 2093).
215215
(accepted, infer_outlives_requirements, "1.30.0", Some(44493)),
216216
/// Allow anonymous constants from an inline `const` block
217-
(accepted, inline_const, "CURRENT_RUSTC_VERSION", Some(76001)),
217+
(accepted, inline_const, "1.79.0", Some(76001)),
218218
/// Allows irrefutable patterns in `if let` and `while let` statements (RFC 2086).
219219
(accepted, irrefutable_let_patterns, "1.33.0", Some(44495)),
220220
/// Allows `#[instruction_set(_)]` attribute.
@@ -360,7 +360,7 @@ declare_features! (
360360
/// Allows macros to appear in the type position.
361361
(accepted, type_macros, "1.13.0", Some(27245)),
362362
/// Allows using type privacy lints (`private_interfaces`, `private_bounds`, `unnameable_types`).
363-
(accepted, type_privacy_lints, "CURRENT_RUSTC_VERSION", Some(48054)),
363+
(accepted, type_privacy_lints, "1.79.0", Some(48054)),
364364
/// Allows `const _: TYPE = VALUE`.
365365
(accepted, underscore_const_names, "1.37.0", Some(54912)),
366366
/// Allows `use path as _;` and `extern crate c as _;`.

compiler/rustc_feature/src/unstable.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ declare_features! (
216216
/// Set the maximum pattern complexity allowed (not limited by default).
217217
(internal, pattern_complexity, "1.78.0", None),
218218
/// Allows using pattern types.
219-
(internal, pattern_types, "CURRENT_RUSTC_VERSION", Some(123646)),
219+
(internal, pattern_types, "1.79.0", Some(123646)),
220220
/// Allows using `#[prelude_import]` on glob `use` items.
221221
(internal, prelude_import, "1.2.0", None),
222222
/// Used to identify crates that contain the profiler runtime.
@@ -384,7 +384,7 @@ declare_features! (
384384
/// Allows `cfg(target_thread_local)`.
385385
(unstable, cfg_target_thread_local, "1.7.0", Some(29594)),
386386
/// Allows the use of `#[cfg(ub_checks)` to check if UB checks are enabled.
387-
(unstable, cfg_ub_checks, "CURRENT_RUSTC_VERSION", Some(123499)),
387+
(unstable, cfg_ub_checks, "1.79.0", Some(123499)),
388388
/// Allow conditional compilation depending on rust version
389389
(unstable, cfg_version, "1.45.0", Some(64796)),
390390
/// Allows to use the `#[cfi_encoding = ""]` attribute.
@@ -439,7 +439,7 @@ declare_features! (
439439
/// Allows having using `suggestion` in the `#[deprecated]` attribute.
440440
(unstable, deprecated_suggestion, "1.61.0", Some(94785)),
441441
/// Allows deref patterns.
442-
(incomplete, deref_patterns, "CURRENT_RUSTC_VERSION", Some(87121)),
442+
(incomplete, deref_patterns, "1.79.0", Some(87121)),
443443
/// Controls errors in trait implementations.
444444
(unstable, do_not_recommend, "1.67.0", Some(51992)),
445445
/// Tells rustdoc to automatically generate `#[doc(cfg(...))]`.
@@ -530,9 +530,9 @@ declare_features! (
530530
/// Allows the `#[must_not_suspend]` attribute.
531531
(unstable, must_not_suspend, "1.57.0", Some(83310)),
532532
/// Make `mut` not reset the binding mode on edition >= 2024.
533-
(incomplete, mut_preserve_binding_mode_2024, "CURRENT_RUSTC_VERSION", Some(123076)),
533+
(incomplete, mut_preserve_binding_mode_2024, "1.79.0", Some(123076)),
534534
/// Allows `mut ref` and `mut ref mut` identifier patterns.
535-
(incomplete, mut_ref, "CURRENT_RUSTC_VERSION", Some(123076)),
535+
(incomplete, mut_ref, "1.79.0", Some(123076)),
536536
/// Allows using `#[naked]` on functions.
537537
(unstable, naked_functions, "1.9.0", Some(90957)),
538538
/// Allows specifying the as-needed link modifier
@@ -564,17 +564,17 @@ declare_features! (
564564
/// Allows using `#[optimize(X)]`.
565565
(unstable, optimize_attribute, "1.34.0", Some(54882)),
566566
/// Allows postfix match `expr.match { ... }`
567-
(unstable, postfix_match, "CURRENT_RUSTC_VERSION", Some(121618)),
567+
(unstable, postfix_match, "1.79.0", Some(121618)),
568568
/// Allows `use<'a, 'b, A, B>` in `impl use<...> Trait` for precise capture of generic args.
569-
(incomplete, precise_capturing, "CURRENT_RUSTC_VERSION", Some(123432)),
569+
(incomplete, precise_capturing, "1.79.0", Some(123432)),
570570
/// Allows macro attributes on expressions, statements and non-inline modules.
571571
(unstable, proc_macro_hygiene, "1.30.0", Some(54727)),
572572
/// Allows `&raw const $place_expr` and `&raw mut $place_expr` expressions.
573573
(unstable, raw_ref_op, "1.41.0", Some(64490)),
574574
/// Makes `&` and `&mut` patterns eat only one layer of references in Rust 2024.
575-
(incomplete, ref_pat_eat_one_layer_2024, "CURRENT_RUSTC_VERSION", Some(123076)),
575+
(incomplete, ref_pat_eat_one_layer_2024, "1.79.0", Some(123076)),
576576
/// Allows `&` and `&mut` patterns to consume match-ergonomics-inserted references.
577-
(incomplete, ref_pat_everywhere, "CURRENT_RUSTC_VERSION", Some(123076)),
577+
(incomplete, ref_pat_everywhere, "1.79.0", Some(123076)),
578578
/// Allows using the `#[register_tool]` attribute.
579579
(unstable, register_tool, "1.41.0", Some(66079)),
580580
/// Allows the `#[repr(i128)]` attribute for enums.

library/alloc/src/str.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub use core::str::{RSplit, Split};
5353
pub use core::str::{RSplitN, SplitN};
5454
#[stable(feature = "rust1", since = "1.0.0")]
5555
pub use core::str::{RSplitTerminator, SplitTerminator};
56-
#[stable(feature = "utf8_chunks", since = "CURRENT_RUSTC_VERSION")]
56+
#[stable(feature = "utf8_chunks", since = "1.79.0")]
5757
pub use core::str::{Utf8Chunk, Utf8Chunks};
5858

5959
/// Note: `str` in `Concat<str>` is not meaningful here.

library/core/src/ffi/c_str.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ impl CStr {
528528
#[inline]
529529
#[must_use]
530530
#[doc(alias("len", "strlen"))]
531-
#[stable(feature = "cstr_count_bytes", since = "CURRENT_RUSTC_VERSION")]
531+
#[stable(feature = "cstr_count_bytes", since = "1.79.0")]
532532
#[rustc_const_unstable(feature = "const_cstr_from_ptr", issue = "113219")]
533533
pub const fn count_bytes(&self) -> usize {
534534
self.inner.len() - 1

library/core/src/intrinsics.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ extern "rust-intrinsic" {
11281128
/// any safety invariants.
11291129
///
11301130
/// Consider using [`core::panic::Location::caller`] instead.
1131-
#[rustc_const_stable(feature = "const_caller_location", since = "CURRENT_RUSTC_VERSION")]
1131+
#[rustc_const_stable(feature = "const_caller_location", since = "1.79.0")]
11321132
#[rustc_safe_intrinsic]
11331133
#[rustc_nounwind]
11341134
pub fn caller_location() -> &'static crate::panic::Location<'static>;
@@ -2289,7 +2289,7 @@ extern "rust-intrinsic" {
22892289
///
22902290
/// The stable counterpart of this intrinsic is `unchecked_add` on the various
22912291
/// integer types, such as [`u16::unchecked_add`] and [`i64::unchecked_add`].
2292-
#[rustc_const_stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
2292+
#[rustc_const_stable(feature = "unchecked_math", since = "1.79.0")]
22932293
#[rustc_nounwind]
22942294
pub fn unchecked_add<T: Copy>(x: T, y: T) -> T;
22952295

@@ -2298,7 +2298,7 @@ extern "rust-intrinsic" {
22982298
///
22992299
/// The stable counterpart of this intrinsic is `unchecked_sub` on the various
23002300
/// integer types, such as [`u16::unchecked_sub`] and [`i64::unchecked_sub`].
2301-
#[rustc_const_stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
2301+
#[rustc_const_stable(feature = "unchecked_math", since = "1.79.0")]
23022302
#[rustc_nounwind]
23032303
pub fn unchecked_sub<T: Copy>(x: T, y: T) -> T;
23042304

@@ -2307,7 +2307,7 @@ extern "rust-intrinsic" {
23072307
///
23082308
/// The stable counterpart of this intrinsic is `unchecked_mul` on the various
23092309
/// integer types, such as [`u16::unchecked_mul`] and [`i64::unchecked_mul`].
2310-
#[rustc_const_stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
2310+
#[rustc_const_stable(feature = "unchecked_math", since = "1.79.0")]
23112311
#[rustc_nounwind]
23122312
pub fn unchecked_mul<T: Copy>(x: T, y: T) -> T;
23132313

library/core/src/iter/traits/collect.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ pub trait FromIterator<A>: Sized {
169169
/// assert_eq!(lengths, [1, 1, 3, 1]);
170170
/// # Ok(()) }
171171
/// ```
172-
#[stable(feature = "from_iterator_for_tuple", since = "CURRENT_RUSTC_VERSION")]
172+
#[stable(feature = "from_iterator_for_tuple", since = "1.79.0")]
173173
impl<A, B, AE, BE> FromIterator<(AE, BE)> for (A, B)
174174
where
175175
A: Default + Extend<AE>,

library/core/src/num/int_macros.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,8 @@ macro_rules! int_impl {
481481
/// [`unwrap_unchecked`]: option/enum.Option.html#method.unwrap_unchecked
482482
#[doc = concat!("[`checked_add`]: ", stringify!($SelfT), "::checked_add")]
483483
#[doc = concat!("[`wrapping_add`]: ", stringify!($SelfT), "::wrapping_add")]
484-
#[stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
485-
#[rustc_const_stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
484+
#[stable(feature = "unchecked_math", since = "1.79.0")]
485+
#[rustc_const_stable(feature = "unchecked_math", since = "1.79.0")]
486486
#[must_use = "this returns the result of the operation, \
487487
without modifying the original"]
488488
#[inline(always)]
@@ -623,8 +623,8 @@ macro_rules! int_impl {
623623
/// [`unwrap_unchecked`]: option/enum.Option.html#method.unwrap_unchecked
624624
#[doc = concat!("[`checked_sub`]: ", stringify!($SelfT), "::checked_sub")]
625625
#[doc = concat!("[`wrapping_sub`]: ", stringify!($SelfT), "::wrapping_sub")]
626-
#[stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
627-
#[rustc_const_stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
626+
#[stable(feature = "unchecked_math", since = "1.79.0")]
627+
#[rustc_const_stable(feature = "unchecked_math", since = "1.79.0")]
628628
#[must_use = "this returns the result of the operation, \
629629
without modifying the original"]
630630
#[inline(always)]
@@ -765,8 +765,8 @@ macro_rules! int_impl {
765765
/// [`unwrap_unchecked`]: option/enum.Option.html#method.unwrap_unchecked
766766
#[doc = concat!("[`checked_mul`]: ", stringify!($SelfT), "::checked_mul")]
767767
#[doc = concat!("[`wrapping_mul`]: ", stringify!($SelfT), "::wrapping_mul")]
768-
#[stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
769-
#[rustc_const_stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
768+
#[stable(feature = "unchecked_math", since = "1.79.0")]
769+
#[rustc_const_stable(feature = "unchecked_math", since = "1.79.0")]
770770
#[must_use = "this returns the result of the operation, \
771771
without modifying the original"]
772772
#[inline(always)]

library/core/src/num/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub use error::ParseIntError;
6767
)]
6868
pub use nonzero::ZeroablePrimitive;
6969

70-
#[stable(feature = "generic_nonzero", since = "CURRENT_RUSTC_VERSION")]
70+
#[stable(feature = "generic_nonzero", since = "1.79.0")]
7171
pub use nonzero::NonZero;
7272

7373
#[stable(feature = "signed_nonzero", since = "1.34.0")]

library/core/src/num/nonzero.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl_zeroable_primitive!(
109109
///
110110
/// assert_eq!(size_of::<Option<NonZero<u32>>>(), size_of::<u32>());
111111
/// ```
112-
#[stable(feature = "generic_nonzero", since = "CURRENT_RUSTC_VERSION")]
112+
#[stable(feature = "generic_nonzero", since = "1.79.0")]
113113
#[repr(transparent)]
114114
#[rustc_nonnull_optimization_guaranteed]
115115
#[rustc_diagnostic_item = "NonZero"]
@@ -861,7 +861,7 @@ macro_rules! nonzero_integer_signedness_dependent_impls {
861861
}
862862
}
863863

864-
#[stable(feature = "nonzero_div_assign", since = "CURRENT_RUSTC_VERSION")]
864+
#[stable(feature = "nonzero_div_assign", since = "1.79.0")]
865865
impl DivAssign<$Ty> for $Int {
866866
/// This operation rounds towards zero,
867867
/// truncating any fractional part of the exact result, and cannot panic.
@@ -884,7 +884,7 @@ macro_rules! nonzero_integer_signedness_dependent_impls {
884884
}
885885
}
886886

887-
#[stable(feature = "nonzero_div_assign", since = "CURRENT_RUSTC_VERSION")]
887+
#[stable(feature = "nonzero_div_assign", since = "1.79.0")]
888888
impl RemAssign<$Ty> for $Int {
889889
/// This operation satisfies `n % d == n - (n / d) * d`, and cannot panic.
890890
#[inline]

library/core/src/num/uint_macros.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -503,8 +503,8 @@ macro_rules! uint_impl {
503503
/// [`unwrap_unchecked`]: option/enum.Option.html#method.unwrap_unchecked
504504
#[doc = concat!("[`checked_add`]: ", stringify!($SelfT), "::checked_add")]
505505
#[doc = concat!("[`wrapping_add`]: ", stringify!($SelfT), "::wrapping_add")]
506-
#[stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
507-
#[rustc_const_stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
506+
#[stable(feature = "unchecked_math", since = "1.79.0")]
507+
#[rustc_const_stable(feature = "unchecked_math", since = "1.79.0")]
508508
#[must_use = "this returns the result of the operation, \
509509
without modifying the original"]
510510
#[inline(always)]
@@ -660,8 +660,8 @@ macro_rules! uint_impl {
660660
/// [`unwrap_unchecked`]: option/enum.Option.html#method.unwrap_unchecked
661661
#[doc = concat!("[`checked_sub`]: ", stringify!($SelfT), "::checked_sub")]
662662
#[doc = concat!("[`wrapping_sub`]: ", stringify!($SelfT), "::wrapping_sub")]
663-
#[stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
664-
#[rustc_const_stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
663+
#[stable(feature = "unchecked_math", since = "1.79.0")]
664+
#[rustc_const_stable(feature = "unchecked_math", since = "1.79.0")]
665665
#[must_use = "this returns the result of the operation, \
666666
without modifying the original"]
667667
#[inline(always)]
@@ -746,8 +746,8 @@ macro_rules! uint_impl {
746746
/// [`unwrap_unchecked`]: option/enum.Option.html#method.unwrap_unchecked
747747
#[doc = concat!("[`checked_mul`]: ", stringify!($SelfT), "::checked_mul")]
748748
#[doc = concat!("[`wrapping_mul`]: ", stringify!($SelfT), "::wrapping_mul")]
749-
#[stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
750-
#[rustc_const_stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
749+
#[stable(feature = "unchecked_math", since = "1.79.0")]
750+
#[rustc_const_stable(feature = "unchecked_math", since = "1.79.0")]
751751
#[must_use = "this returns the result of the operation, \
752752
without modifying the original"]
753753
#[inline(always)]

library/core/src/panic/location.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl<'a> Location<'a> {
8181
/// ```
8282
#[must_use]
8383
#[stable(feature = "track_caller", since = "1.46.0")]
84-
#[rustc_const_stable(feature = "const_caller_location", since = "CURRENT_RUSTC_VERSION")]
84+
#[rustc_const_stable(feature = "const_caller_location", since = "1.79.0")]
8585
#[track_caller]
8686
#[inline]
8787
pub const fn caller() -> &'static Location<'static> {
@@ -123,7 +123,7 @@ impl<'a> Location<'a> {
123123
/// ```
124124
#[must_use]
125125
#[stable(feature = "panic_hooks", since = "1.10.0")]
126-
#[rustc_const_stable(feature = "const_location_fields", since = "CURRENT_RUSTC_VERSION")]
126+
#[rustc_const_stable(feature = "const_location_fields", since = "1.79.0")]
127127
#[inline]
128128
pub const fn file(&self) -> &str {
129129
self.file
@@ -148,7 +148,7 @@ impl<'a> Location<'a> {
148148
/// ```
149149
#[must_use]
150150
#[stable(feature = "panic_hooks", since = "1.10.0")]
151-
#[rustc_const_stable(feature = "const_location_fields", since = "CURRENT_RUSTC_VERSION")]
151+
#[rustc_const_stable(feature = "const_location_fields", since = "1.79.0")]
152152
#[inline]
153153
pub const fn line(&self) -> u32 {
154154
self.line
@@ -173,7 +173,7 @@ impl<'a> Location<'a> {
173173
/// ```
174174
#[must_use]
175175
#[stable(feature = "panic_col", since = "1.25.0")]
176-
#[rustc_const_stable(feature = "const_location_fields", since = "CURRENT_RUSTC_VERSION")]
176+
#[rustc_const_stable(feature = "const_location_fields", since = "1.79.0")]
177177
#[inline]
178178
pub const fn column(&self) -> u32 {
179179
self.col

library/core/src/ptr/const_ptr.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,7 @@ impl<T: ?Sized> *const T {
14961496
/// [tracking issue]: https://github.com/rust-lang/rust/issues/104203
14971497
#[must_use]
14981498
#[inline]
1499-
#[stable(feature = "pointer_is_aligned", since = "CURRENT_RUSTC_VERSION")]
1499+
#[stable(feature = "pointer_is_aligned", since = "1.79.0")]
15001500
#[rustc_const_unstable(feature = "const_pointer_is_aligned", issue = "104203")]
15011501
pub const fn is_aligned(self) -> bool
15021502
where
@@ -1653,8 +1653,8 @@ impl<T> *const [T] {
16531653
/// assert_eq!(slice.len(), 3);
16541654
/// ```
16551655
#[inline]
1656-
#[stable(feature = "slice_ptr_len", since = "CURRENT_RUSTC_VERSION")]
1657-
#[rustc_const_stable(feature = "const_slice_ptr_len", since = "CURRENT_RUSTC_VERSION")]
1656+
#[stable(feature = "slice_ptr_len", since = "1.79.0")]
1657+
#[rustc_const_stable(feature = "const_slice_ptr_len", since = "1.79.0")]
16581658
#[rustc_allow_const_fn_unstable(ptr_metadata)]
16591659
pub const fn len(self) -> usize {
16601660
metadata(self)
@@ -1671,8 +1671,8 @@ impl<T> *const [T] {
16711671
/// assert!(!slice.is_empty());
16721672
/// ```
16731673
#[inline(always)]
1674-
#[stable(feature = "slice_ptr_len", since = "CURRENT_RUSTC_VERSION")]
1675-
#[rustc_const_stable(feature = "const_slice_ptr_len", since = "CURRENT_RUSTC_VERSION")]
1674+
#[stable(feature = "slice_ptr_len", since = "1.79.0")]
1675+
#[rustc_const_stable(feature = "const_slice_ptr_len", since = "1.79.0")]
16761676
pub const fn is_empty(self) -> bool {
16771677
self.len() == 0
16781678
}

0 commit comments

Comments
 (0)