update version placeholders
(cherry picked from commit e4840ce59bdddb19394df008c5c26d9c493725f8)
This commit is contained in:
parent
3b022d8cee
commit
fdba8a7c47
16 changed files with 44 additions and 44 deletions
|
@ -387,7 +387,7 @@ declare_features! (
|
||||||
/// Allows `#[target_feature(...)]`.
|
/// Allows `#[target_feature(...)]`.
|
||||||
(accepted, target_feature, "1.27.0", None),
|
(accepted, target_feature, "1.27.0", None),
|
||||||
/// Allows the use of `#[target_feature]` on safe functions.
|
/// Allows the use of `#[target_feature]` on safe functions.
|
||||||
(accepted, target_feature_11, "CURRENT_RUSTC_VERSION", Some(69098)),
|
(accepted, target_feature_11, "1.86.0", Some(69098)),
|
||||||
/// Allows `fn main()` with return types which implements `Termination` (RFC 1937).
|
/// Allows `fn main()` with return types which implements `Termination` (RFC 1937).
|
||||||
(accepted, termination_trait, "1.26.0", Some(43301)),
|
(accepted, termination_trait, "1.26.0", Some(43301)),
|
||||||
/// Allows `#[test]` functions where the return type implements `Termination` (RFC 1937).
|
/// Allows `#[test]` functions where the return type implements `Termination` (RFC 1937).
|
||||||
|
@ -401,7 +401,7 @@ declare_features! (
|
||||||
(accepted, track_caller, "1.46.0", Some(47809)),
|
(accepted, track_caller, "1.46.0", Some(47809)),
|
||||||
/// Allows dyn upcasting trait objects via supertraits.
|
/// Allows dyn upcasting trait objects via supertraits.
|
||||||
/// Dyn upcasting is casting, e.g., `dyn Foo -> dyn Bar` where `Foo: Bar`.
|
/// Dyn upcasting is casting, e.g., `dyn Foo -> dyn Bar` where `Foo: Bar`.
|
||||||
(accepted, trait_upcasting, "CURRENT_RUSTC_VERSION", Some(65991)),
|
(accepted, trait_upcasting, "1.86.0", Some(65991)),
|
||||||
/// Allows #[repr(transparent)] on univariant enums (RFC 2645).
|
/// Allows #[repr(transparent)] on univariant enums (RFC 2645).
|
||||||
(accepted, transparent_enums, "1.42.0", Some(60405)),
|
(accepted, transparent_enums, "1.42.0", Some(60405)),
|
||||||
/// Allows indexing tuples.
|
/// Allows indexing tuples.
|
||||||
|
|
|
@ -203,7 +203,7 @@ declare_features! (
|
||||||
/// Allows using anonymous lifetimes in argument-position impl-trait.
|
/// Allows using anonymous lifetimes in argument-position impl-trait.
|
||||||
(unstable, anonymous_lifetime_in_impl_trait, "1.63.0", None),
|
(unstable, anonymous_lifetime_in_impl_trait, "1.63.0", None),
|
||||||
/// Allows access to the emscripten_wasm_eh config, used by panic_unwind and unwind
|
/// Allows access to the emscripten_wasm_eh config, used by panic_unwind and unwind
|
||||||
(internal, cfg_emscripten_wasm_eh, "CURRENT_RUSTC_VERSION", None),
|
(internal, cfg_emscripten_wasm_eh, "1.86.0", None),
|
||||||
/// Allows identifying the `compiler_builtins` crate.
|
/// Allows identifying the `compiler_builtins` crate.
|
||||||
(internal, compiler_builtins, "1.13.0", None),
|
(internal, compiler_builtins, "1.13.0", None),
|
||||||
/// Allows writing custom MIR
|
/// Allows writing custom MIR
|
||||||
|
@ -360,7 +360,7 @@ declare_features! (
|
||||||
/// Allows `extern "C-cmse-nonsecure-call" fn()`.
|
/// Allows `extern "C-cmse-nonsecure-call" fn()`.
|
||||||
(unstable, abi_c_cmse_nonsecure_call, "1.51.0", Some(81391)),
|
(unstable, abi_c_cmse_nonsecure_call, "1.51.0", Some(81391)),
|
||||||
/// Allows `extern "gpu-kernel" fn()`.
|
/// Allows `extern "gpu-kernel" fn()`.
|
||||||
(unstable, abi_gpu_kernel, "CURRENT_RUSTC_VERSION", Some(135467)),
|
(unstable, abi_gpu_kernel, "1.86.0", Some(135467)),
|
||||||
/// Allows `extern "msp430-interrupt" fn()`.
|
/// Allows `extern "msp430-interrupt" fn()`.
|
||||||
(unstable, abi_msp430_interrupt, "1.16.0", Some(38487)),
|
(unstable, abi_msp430_interrupt, "1.16.0", Some(38487)),
|
||||||
/// Allows `extern "ptx-*" fn()`.
|
/// Allows `extern "ptx-*" fn()`.
|
||||||
|
@ -404,7 +404,7 @@ declare_features! (
|
||||||
/// Allows the use of `#[cfg(<true/false>)]`.
|
/// Allows the use of `#[cfg(<true/false>)]`.
|
||||||
(unstable, cfg_boolean_literals, "1.83.0", Some(131204)),
|
(unstable, cfg_boolean_literals, "1.83.0", Some(131204)),
|
||||||
/// Allows the use of `#[cfg(contract_checks)` to check if contract checks are enabled.
|
/// Allows the use of `#[cfg(contract_checks)` to check if contract checks are enabled.
|
||||||
(unstable, cfg_contract_checks, "CURRENT_RUSTC_VERSION", Some(128044)),
|
(unstable, cfg_contract_checks, "1.86.0", Some(128044)),
|
||||||
/// Allows the use of `#[cfg(overflow_checks)` to check if integer overflow behaviour.
|
/// Allows the use of `#[cfg(overflow_checks)` to check if integer overflow behaviour.
|
||||||
(unstable, cfg_overflow_checks, "1.71.0", Some(111466)),
|
(unstable, cfg_overflow_checks, "1.71.0", Some(111466)),
|
||||||
/// Provides the relocation model information as cfg entry
|
/// Provides the relocation model information as cfg entry
|
||||||
|
@ -448,9 +448,9 @@ declare_features! (
|
||||||
/// Allows the `?` operator in const contexts.
|
/// Allows the `?` operator in const contexts.
|
||||||
(unstable, const_try, "1.56.0", Some(74935)),
|
(unstable, const_try, "1.56.0", Some(74935)),
|
||||||
/// Allows use of contracts attributes.
|
/// Allows use of contracts attributes.
|
||||||
(incomplete, contracts, "CURRENT_RUSTC_VERSION", Some(128044)),
|
(incomplete, contracts, "1.86.0", Some(128044)),
|
||||||
/// Allows access to internal machinery used to implement contracts.
|
/// Allows access to internal machinery used to implement contracts.
|
||||||
(internal, contracts_internals, "CURRENT_RUSTC_VERSION", Some(128044)),
|
(internal, contracts_internals, "1.86.0", Some(128044)),
|
||||||
/// Allows coroutines to be cloned.
|
/// Allows coroutines to be cloned.
|
||||||
(unstable, coroutine_clone, "1.65.0", Some(95360)),
|
(unstable, coroutine_clone, "1.65.0", Some(95360)),
|
||||||
/// Allows defining coroutines.
|
/// Allows defining coroutines.
|
||||||
|
@ -491,7 +491,7 @@ declare_features! (
|
||||||
/// for functions with varargs.
|
/// for functions with varargs.
|
||||||
(unstable, extended_varargs_abi_support, "1.65.0", Some(100189)),
|
(unstable, extended_varargs_abi_support, "1.65.0", Some(100189)),
|
||||||
/// Allows using `system` as a calling convention with varargs.
|
/// Allows using `system` as a calling convention with varargs.
|
||||||
(unstable, extern_system_varargs, "CURRENT_RUSTC_VERSION", Some(136946)),
|
(unstable, extern_system_varargs, "1.86.0", Some(136946)),
|
||||||
/// Allows defining `extern type`s.
|
/// Allows defining `extern type`s.
|
||||||
(unstable, extern_types, "1.23.0", Some(43467)),
|
(unstable, extern_types, "1.23.0", Some(43467)),
|
||||||
/// Allow using 128-bit (quad precision) floating point numbers.
|
/// Allow using 128-bit (quad precision) floating point numbers.
|
||||||
|
@ -519,7 +519,7 @@ declare_features! (
|
||||||
/// Allows generic parameters and where-clauses on free & associated const items.
|
/// Allows generic parameters and where-clauses on free & associated const items.
|
||||||
(incomplete, generic_const_items, "1.73.0", Some(113521)),
|
(incomplete, generic_const_items, "1.73.0", Some(113521)),
|
||||||
/// Allows any generic constants being used as pattern type range ends
|
/// Allows any generic constants being used as pattern type range ends
|
||||||
(incomplete, generic_pattern_types, "CURRENT_RUSTC_VERSION", Some(136574)),
|
(incomplete, generic_pattern_types, "1.86.0", Some(136574)),
|
||||||
/// Allows registering static items globally, possibly across crates, to iterate over at runtime.
|
/// Allows registering static items globally, possibly across crates, to iterate over at runtime.
|
||||||
(unstable, global_registration, "1.80.0", Some(125119)),
|
(unstable, global_registration, "1.80.0", Some(125119)),
|
||||||
/// Allows using guards in patterns.
|
/// Allows using guards in patterns.
|
||||||
|
@ -535,7 +535,7 @@ declare_features! (
|
||||||
/// Allows `impl Trait` as output type in `Fn` traits in return position of functions.
|
/// Allows `impl Trait` as output type in `Fn` traits in return position of functions.
|
||||||
(unstable, impl_trait_in_fn_trait_return, "1.64.0", Some(99697)),
|
(unstable, impl_trait_in_fn_trait_return, "1.64.0", Some(99697)),
|
||||||
/// Allows `use` associated functions from traits.
|
/// Allows `use` associated functions from traits.
|
||||||
(unstable, import_trait_associated_functions, "CURRENT_RUSTC_VERSION", Some(134691)),
|
(unstable, import_trait_associated_functions, "1.86.0", Some(134691)),
|
||||||
/// Allows associated types in inherent impls.
|
/// Allows associated types in inherent impls.
|
||||||
(incomplete, inherent_associated_types, "1.52.0", Some(8995)),
|
(incomplete, inherent_associated_types, "1.52.0", Some(8995)),
|
||||||
/// Allow anonymous constants from an inline `const` block in pattern position
|
/// Allow anonymous constants from an inline `const` block in pattern position
|
||||||
|
@ -543,7 +543,7 @@ declare_features! (
|
||||||
/// Allows using `pointer` and `reference` in intra-doc links
|
/// Allows using `pointer` and `reference` in intra-doc links
|
||||||
(unstable, intra_doc_pointers, "1.51.0", Some(80896)),
|
(unstable, intra_doc_pointers, "1.51.0", Some(80896)),
|
||||||
// Allows using the `kl` and `widekl` target features and the associated intrinsics
|
// Allows using the `kl` and `widekl` target features and the associated intrinsics
|
||||||
(unstable, keylocker_x86, "CURRENT_RUSTC_VERSION", Some(134813)),
|
(unstable, keylocker_x86, "1.86.0", Some(134813)),
|
||||||
// Allows setting the threshold for the `large_assignments` lint.
|
// Allows setting the threshold for the `large_assignments` lint.
|
||||||
(unstable, large_assignments, "1.52.0", Some(83518)),
|
(unstable, large_assignments, "1.52.0", Some(83518)),
|
||||||
/// Allow to have type alias types for inter-crate use.
|
/// Allow to have type alias types for inter-crate use.
|
||||||
|
@ -584,7 +584,7 @@ declare_features! (
|
||||||
/// Allows diverging expressions to fall back to `!` rather than `()`.
|
/// Allows diverging expressions to fall back to `!` rather than `()`.
|
||||||
(unstable, never_type_fallback, "1.41.0", Some(65992)),
|
(unstable, never_type_fallback, "1.41.0", Some(65992)),
|
||||||
/// Switch `..` syntax to use the new (`Copy + IntoIterator`) range types.
|
/// Switch `..` syntax to use the new (`Copy + IntoIterator`) range types.
|
||||||
(unstable, new_range, "CURRENT_RUSTC_VERSION", Some(123741)),
|
(unstable, new_range, "1.86.0", Some(123741)),
|
||||||
/// Allows `#![no_core]`.
|
/// Allows `#![no_core]`.
|
||||||
(unstable, no_core, "1.3.0", Some(29639)),
|
(unstable, no_core, "1.3.0", Some(29639)),
|
||||||
/// Allows the use of `no_sanitize` attribute.
|
/// Allows the use of `no_sanitize` attribute.
|
||||||
|
@ -636,7 +636,7 @@ declare_features! (
|
||||||
/// Allows string patterns to dereference values to match them.
|
/// Allows string patterns to dereference values to match them.
|
||||||
(unstable, string_deref_patterns, "1.67.0", Some(87121)),
|
(unstable, string_deref_patterns, "1.67.0", Some(87121)),
|
||||||
/// Allows subtrait items to shadow supertrait items.
|
/// Allows subtrait items to shadow supertrait items.
|
||||||
(unstable, supertrait_item_shadowing, "CURRENT_RUSTC_VERSION", Some(89151)),
|
(unstable, supertrait_item_shadowing, "1.86.0", Some(89151)),
|
||||||
/// Allows using `#[thread_local]` on `static` items.
|
/// Allows using `#[thread_local]` on `static` items.
|
||||||
(unstable, thread_local, "1.0.0", Some(29594)),
|
(unstable, thread_local, "1.0.0", Some(29594)),
|
||||||
/// Allows defining `trait X = A + B;` alias items.
|
/// Allows defining `trait X = A + B;` alias items.
|
||||||
|
|
|
@ -12,7 +12,7 @@ declare_lint! {
|
||||||
/// for `dyn SubTrait` with a `dyn SuperTrait` type as the `Output` type.
|
/// for `dyn SubTrait` with a `dyn SuperTrait` type as the `Output` type.
|
||||||
///
|
///
|
||||||
/// These implementations are "shadowed" by trait upcasting (stabilized since
|
/// These implementations are "shadowed" by trait upcasting (stabilized since
|
||||||
/// CURRENT_RUSTC_VERSION). The `deref` functions is no longer called implicitly, which might
|
/// 1.86.0). The `deref` functions is no longer called implicitly, which might
|
||||||
/// change behavior compared to previous rustc versions.
|
/// change behavior compared to previous rustc versions.
|
||||||
///
|
///
|
||||||
/// ### Example
|
/// ### Example
|
||||||
|
|
|
@ -27,7 +27,7 @@ pub use core::slice::ArrayChunksMut;
|
||||||
pub use core::slice::ArrayWindows;
|
pub use core::slice::ArrayWindows;
|
||||||
#[stable(feature = "inherent_ascii_escape", since = "1.60.0")]
|
#[stable(feature = "inherent_ascii_escape", since = "1.60.0")]
|
||||||
pub use core::slice::EscapeAscii;
|
pub use core::slice::EscapeAscii;
|
||||||
#[stable(feature = "get_many_mut", since = "CURRENT_RUSTC_VERSION")]
|
#[stable(feature = "get_many_mut", since = "1.86.0")]
|
||||||
pub use core::slice::GetDisjointMutError;
|
pub use core::slice::GetDisjointMutError;
|
||||||
#[stable(feature = "slice_get_slice", since = "1.28.0")]
|
#[stable(feature = "slice_get_slice", since = "1.28.0")]
|
||||||
pub use core::slice::SliceIndex;
|
pub use core::slice::SliceIndex;
|
||||||
|
|
|
@ -2526,7 +2526,7 @@ impl<T, A: Allocator> Vec<T, A> {
|
||||||
/// assert_eq!(vec, [1, 2, 3]);
|
/// assert_eq!(vec, [1, 2, 3]);
|
||||||
/// assert_eq!(vec.pop_if(pred), None);
|
/// assert_eq!(vec.pop_if(pred), None);
|
||||||
/// ```
|
/// ```
|
||||||
#[stable(feature = "vec_pop_if", since = "CURRENT_RUSTC_VERSION")]
|
#[stable(feature = "vec_pop_if", since = "1.86.0")]
|
||||||
pub fn pop_if(&mut self, predicate: impl FnOnce(&mut T) -> bool) -> Option<T> {
|
pub fn pop_if(&mut self, predicate: impl FnOnce(&mut T) -> bool) -> Option<T> {
|
||||||
let last = self.last_mut()?;
|
let last = self.last_mut()?;
|
||||||
if predicate(last) { self.pop() } else { None }
|
if predicate(last) { self.pop() } else { None }
|
||||||
|
|
|
@ -1099,5 +1099,5 @@ impl Error for crate::time::TryFromFloatSecsError {}
|
||||||
#[stable(feature = "cstr_from_bytes_until_nul", since = "1.69.0")]
|
#[stable(feature = "cstr_from_bytes_until_nul", since = "1.69.0")]
|
||||||
impl Error for crate::ffi::FromBytesUntilNulError {}
|
impl Error for crate::ffi::FromBytesUntilNulError {}
|
||||||
|
|
||||||
#[stable(feature = "get_many_mut", since = "CURRENT_RUSTC_VERSION")]
|
#[stable(feature = "get_many_mut", since = "1.86.0")]
|
||||||
impl Error for crate::slice::GetDisjointMutError {}
|
impl Error for crate::slice::GetDisjointMutError {}
|
||||||
|
|
|
@ -472,7 +472,7 @@ pub fn spin_loop() {
|
||||||
/// During constant evaluation, `black_box` is treated as a no-op.
|
/// During constant evaluation, `black_box` is treated as a no-op.
|
||||||
#[inline]
|
#[inline]
|
||||||
#[stable(feature = "bench_black_box", since = "1.66.0")]
|
#[stable(feature = "bench_black_box", since = "1.66.0")]
|
||||||
#[rustc_const_stable(feature = "const_black_box", since = "CURRENT_RUSTC_VERSION")]
|
#[rustc_const_stable(feature = "const_black_box", since = "1.86.0")]
|
||||||
pub const fn black_box<T>(dummy: T) -> T {
|
pub const fn black_box<T>(dummy: T) -> T {
|
||||||
crate::intrinsics::black_box(dummy)
|
crate::intrinsics::black_box(dummy)
|
||||||
}
|
}
|
||||||
|
|
|
@ -741,8 +741,8 @@ impl f32 {
|
||||||
/// [`MAX`]: Self::MAX
|
/// [`MAX`]: Self::MAX
|
||||||
#[inline]
|
#[inline]
|
||||||
#[doc(alias = "nextUp")]
|
#[doc(alias = "nextUp")]
|
||||||
#[stable(feature = "float_next_up_down", since = "CURRENT_RUSTC_VERSION")]
|
#[stable(feature = "float_next_up_down", since = "1.86.0")]
|
||||||
#[rustc_const_stable(feature = "float_next_up_down", since = "CURRENT_RUSTC_VERSION")]
|
#[rustc_const_stable(feature = "float_next_up_down", since = "1.86.0")]
|
||||||
pub const fn next_up(self) -> Self {
|
pub const fn next_up(self) -> Self {
|
||||||
// Some targets violate Rust's assumption of IEEE semantics, e.g. by flushing
|
// Some targets violate Rust's assumption of IEEE semantics, e.g. by flushing
|
||||||
// denormals to zero. This is in general unsound and unsupported, but here
|
// denormals to zero. This is in general unsound and unsupported, but here
|
||||||
|
@ -792,8 +792,8 @@ impl f32 {
|
||||||
/// [`MAX`]: Self::MAX
|
/// [`MAX`]: Self::MAX
|
||||||
#[inline]
|
#[inline]
|
||||||
#[doc(alias = "nextDown")]
|
#[doc(alias = "nextDown")]
|
||||||
#[stable(feature = "float_next_up_down", since = "CURRENT_RUSTC_VERSION")]
|
#[stable(feature = "float_next_up_down", since = "1.86.0")]
|
||||||
#[rustc_const_stable(feature = "float_next_up_down", since = "CURRENT_RUSTC_VERSION")]
|
#[rustc_const_stable(feature = "float_next_up_down", since = "1.86.0")]
|
||||||
pub const fn next_down(self) -> Self {
|
pub const fn next_down(self) -> Self {
|
||||||
// Some targets violate Rust's assumption of IEEE semantics, e.g. by flushing
|
// Some targets violate Rust's assumption of IEEE semantics, e.g. by flushing
|
||||||
// denormals to zero. This is in general unsound and unsupported, but here
|
// denormals to zero. This is in general unsound and unsupported, but here
|
||||||
|
|
|
@ -758,8 +758,8 @@ impl f64 {
|
||||||
/// [`MAX`]: Self::MAX
|
/// [`MAX`]: Self::MAX
|
||||||
#[inline]
|
#[inline]
|
||||||
#[doc(alias = "nextUp")]
|
#[doc(alias = "nextUp")]
|
||||||
#[stable(feature = "float_next_up_down", since = "CURRENT_RUSTC_VERSION")]
|
#[stable(feature = "float_next_up_down", since = "1.86.0")]
|
||||||
#[rustc_const_stable(feature = "float_next_up_down", since = "CURRENT_RUSTC_VERSION")]
|
#[rustc_const_stable(feature = "float_next_up_down", since = "1.86.0")]
|
||||||
pub const fn next_up(self) -> Self {
|
pub const fn next_up(self) -> Self {
|
||||||
// Some targets violate Rust's assumption of IEEE semantics, e.g. by flushing
|
// Some targets violate Rust's assumption of IEEE semantics, e.g. by flushing
|
||||||
// denormals to zero. This is in general unsound and unsupported, but here
|
// denormals to zero. This is in general unsound and unsupported, but here
|
||||||
|
@ -809,8 +809,8 @@ impl f64 {
|
||||||
/// [`MAX`]: Self::MAX
|
/// [`MAX`]: Self::MAX
|
||||||
#[inline]
|
#[inline]
|
||||||
#[doc(alias = "nextDown")]
|
#[doc(alias = "nextDown")]
|
||||||
#[stable(feature = "float_next_up_down", since = "CURRENT_RUSTC_VERSION")]
|
#[stable(feature = "float_next_up_down", since = "1.86.0")]
|
||||||
#[rustc_const_stable(feature = "float_next_up_down", since = "CURRENT_RUSTC_VERSION")]
|
#[rustc_const_stable(feature = "float_next_up_down", since = "1.86.0")]
|
||||||
pub const fn next_down(self) -> Self {
|
pub const fn next_down(self) -> Self {
|
||||||
// Some targets violate Rust's assumption of IEEE semantics, e.g. by flushing
|
// Some targets violate Rust's assumption of IEEE semantics, e.g. by flushing
|
||||||
// denormals to zero. This is in general unsound and unsupported, but here
|
// denormals to zero. This is in general unsound and unsupported, but here
|
||||||
|
|
|
@ -625,8 +625,8 @@ macro_rules! nonzero_integer {
|
||||||
/// # }
|
/// # }
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
#[stable(feature = "non_zero_count_ones", since = "CURRENT_RUSTC_VERSION")]
|
#[stable(feature = "non_zero_count_ones", since = "1.86.0")]
|
||||||
#[rustc_const_stable(feature = "non_zero_count_ones", since = "CURRENT_RUSTC_VERSION")]
|
#[rustc_const_stable(feature = "non_zero_count_ones", since = "1.86.0")]
|
||||||
#[doc(alias = "popcount")]
|
#[doc(alias = "popcount")]
|
||||||
#[doc(alias = "popcnt")]
|
#[doc(alias = "popcnt")]
|
||||||
#[must_use = "this returns the result of the operation, \
|
#[must_use = "this returns the result of the operation, \
|
||||||
|
|
|
@ -4569,7 +4569,7 @@ impl<T> [T] {
|
||||||
///
|
///
|
||||||
/// [`get_disjoint_mut`]: slice::get_disjoint_mut
|
/// [`get_disjoint_mut`]: slice::get_disjoint_mut
|
||||||
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
|
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
|
||||||
#[stable(feature = "get_many_mut", since = "CURRENT_RUSTC_VERSION")]
|
#[stable(feature = "get_many_mut", since = "1.86.0")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub unsafe fn get_disjoint_unchecked_mut<I, const N: usize>(
|
pub unsafe fn get_disjoint_unchecked_mut<I, const N: usize>(
|
||||||
&mut self,
|
&mut self,
|
||||||
|
@ -4636,7 +4636,7 @@ impl<T> [T] {
|
||||||
/// }
|
/// }
|
||||||
/// assert_eq!(v, &[1, 11, 111]);
|
/// assert_eq!(v, &[1, 11, 111]);
|
||||||
/// ```
|
/// ```
|
||||||
#[stable(feature = "get_many_mut", since = "CURRENT_RUSTC_VERSION")]
|
#[stable(feature = "get_many_mut", since = "1.86.0")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn get_disjoint_mut<I, const N: usize>(
|
pub fn get_disjoint_mut<I, const N: usize>(
|
||||||
&mut self,
|
&mut self,
|
||||||
|
@ -5025,7 +5025,7 @@ fn get_disjoint_check_valid<I: GetDisjointMutIndex, const N: usize>(
|
||||||
/// assert_eq!(v.get_disjoint_mut([0, 999]), Err(GetDisjointMutError::IndexOutOfBounds));
|
/// assert_eq!(v.get_disjoint_mut([0, 999]), Err(GetDisjointMutError::IndexOutOfBounds));
|
||||||
/// assert_eq!(v.get_disjoint_mut([1, 1]), Err(GetDisjointMutError::OverlappingIndices));
|
/// assert_eq!(v.get_disjoint_mut([1, 1]), Err(GetDisjointMutError::OverlappingIndices));
|
||||||
/// ```
|
/// ```
|
||||||
#[stable(feature = "get_many_mut", since = "CURRENT_RUSTC_VERSION")]
|
#[stable(feature = "get_many_mut", since = "1.86.0")]
|
||||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
pub enum GetDisjointMutError {
|
pub enum GetDisjointMutError {
|
||||||
/// An index provided was out-of-bounds for the slice.
|
/// An index provided was out-of-bounds for the slice.
|
||||||
|
@ -5034,7 +5034,7 @@ pub enum GetDisjointMutError {
|
||||||
OverlappingIndices,
|
OverlappingIndices,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[stable(feature = "get_many_mut", since = "CURRENT_RUSTC_VERSION")]
|
#[stable(feature = "get_many_mut", since = "1.86.0")]
|
||||||
impl fmt::Display for GetDisjointMutError {
|
impl fmt::Display for GetDisjointMutError {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
let msg = match self {
|
let msg = match self {
|
||||||
|
|
|
@ -365,7 +365,7 @@ impl str {
|
||||||
/// ```
|
/// ```
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[stable(feature = "is_char_boundary", since = "1.9.0")]
|
#[stable(feature = "is_char_boundary", since = "1.9.0")]
|
||||||
#[rustc_const_stable(feature = "const_is_char_boundary", since = "CURRENT_RUSTC_VERSION")]
|
#[rustc_const_stable(feature = "const_is_char_boundary", since = "1.86.0")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub const fn is_char_boundary(&self, index: usize) -> bool {
|
pub const fn is_char_boundary(&self, index: usize) -> bool {
|
||||||
// 0 is always ok.
|
// 0 is always ok.
|
||||||
|
@ -822,7 +822,7 @@ impl str {
|
||||||
#[inline]
|
#[inline]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[stable(feature = "str_split_at", since = "1.4.0")]
|
#[stable(feature = "str_split_at", since = "1.4.0")]
|
||||||
#[rustc_const_stable(feature = "const_str_split_at", since = "CURRENT_RUSTC_VERSION")]
|
#[rustc_const_stable(feature = "const_str_split_at", since = "1.86.0")]
|
||||||
pub const fn split_at(&self, mid: usize) -> (&str, &str) {
|
pub const fn split_at(&self, mid: usize) -> (&str, &str) {
|
||||||
match self.split_at_checked(mid) {
|
match self.split_at_checked(mid) {
|
||||||
None => slice_error_fail(self, 0, mid),
|
None => slice_error_fail(self, 0, mid),
|
||||||
|
@ -863,7 +863,7 @@ impl str {
|
||||||
#[inline]
|
#[inline]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[stable(feature = "str_split_at", since = "1.4.0")]
|
#[stable(feature = "str_split_at", since = "1.4.0")]
|
||||||
#[rustc_const_stable(feature = "const_str_split_at", since = "CURRENT_RUSTC_VERSION")]
|
#[rustc_const_stable(feature = "const_str_split_at", since = "1.86.0")]
|
||||||
pub const fn split_at_mut(&mut self, mid: usize) -> (&mut str, &mut str) {
|
pub const fn split_at_mut(&mut self, mid: usize) -> (&mut str, &mut str) {
|
||||||
// is_char_boundary checks that the index is in [0, .len()]
|
// is_char_boundary checks that the index is in [0, .len()]
|
||||||
if self.is_char_boundary(mid) {
|
if self.is_char_boundary(mid) {
|
||||||
|
@ -903,7 +903,7 @@ impl str {
|
||||||
#[inline]
|
#[inline]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[stable(feature = "split_at_checked", since = "1.80.0")]
|
#[stable(feature = "split_at_checked", since = "1.80.0")]
|
||||||
#[rustc_const_stable(feature = "const_str_split_at", since = "CURRENT_RUSTC_VERSION")]
|
#[rustc_const_stable(feature = "const_str_split_at", since = "1.86.0")]
|
||||||
pub const fn split_at_checked(&self, mid: usize) -> Option<(&str, &str)> {
|
pub const fn split_at_checked(&self, mid: usize) -> Option<(&str, &str)> {
|
||||||
// is_char_boundary checks that the index is in [0, .len()]
|
// is_char_boundary checks that the index is in [0, .len()]
|
||||||
if self.is_char_boundary(mid) {
|
if self.is_char_boundary(mid) {
|
||||||
|
@ -944,7 +944,7 @@ impl str {
|
||||||
#[inline]
|
#[inline]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[stable(feature = "split_at_checked", since = "1.80.0")]
|
#[stable(feature = "split_at_checked", since = "1.80.0")]
|
||||||
#[rustc_const_stable(feature = "const_str_split_at", since = "CURRENT_RUSTC_VERSION")]
|
#[rustc_const_stable(feature = "const_str_split_at", since = "1.86.0")]
|
||||||
pub const fn split_at_mut_checked(&mut self, mid: usize) -> Option<(&mut str, &mut str)> {
|
pub const fn split_at_mut_checked(&mut self, mid: usize) -> Option<(&mut str, &mut str)> {
|
||||||
// is_char_boundary checks that the index is in [0, .len()]
|
// is_char_boundary checks that the index is in [0, .len()]
|
||||||
if self.is_char_boundary(mid) {
|
if self.is_char_boundary(mid) {
|
||||||
|
|
|
@ -1024,7 +1024,7 @@ where
|
||||||
/// ```
|
/// ```
|
||||||
#[inline]
|
#[inline]
|
||||||
#[doc(alias = "get_many_mut")]
|
#[doc(alias = "get_many_mut")]
|
||||||
#[stable(feature = "map_many_mut", since = "CURRENT_RUSTC_VERSION")]
|
#[stable(feature = "map_many_mut", since = "1.86.0")]
|
||||||
pub fn get_disjoint_mut<Q: ?Sized, const N: usize>(
|
pub fn get_disjoint_mut<Q: ?Sized, const N: usize>(
|
||||||
&mut self,
|
&mut self,
|
||||||
ks: [&Q; N],
|
ks: [&Q; N],
|
||||||
|
@ -1091,7 +1091,7 @@ where
|
||||||
/// ```
|
/// ```
|
||||||
#[inline]
|
#[inline]
|
||||||
#[doc(alias = "get_many_unchecked_mut")]
|
#[doc(alias = "get_many_unchecked_mut")]
|
||||||
#[stable(feature = "map_many_mut", since = "CURRENT_RUSTC_VERSION")]
|
#[stable(feature = "map_many_mut", since = "1.86.0")]
|
||||||
pub unsafe fn get_disjoint_unchecked_mut<Q: ?Sized, const N: usize>(
|
pub unsafe fn get_disjoint_unchecked_mut<Q: ?Sized, const N: usize>(
|
||||||
&mut self,
|
&mut self,
|
||||||
ks: [&Q; N],
|
ks: [&Q; N],
|
||||||
|
|
|
@ -153,7 +153,7 @@ impl<T> Cursor<T> {
|
||||||
/// let reference = buff.get_mut();
|
/// let reference = buff.get_mut();
|
||||||
/// ```
|
/// ```
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
#[rustc_const_stable(feature = "const_mut_cursor", since = "CURRENT_RUSTC_VERSION")]
|
#[rustc_const_stable(feature = "const_mut_cursor", since = "1.86.0")]
|
||||||
pub const fn get_mut(&mut self) -> &mut T {
|
pub const fn get_mut(&mut self) -> &mut T {
|
||||||
&mut self.inner
|
&mut self.inner
|
||||||
}
|
}
|
||||||
|
@ -201,7 +201,7 @@ impl<T> Cursor<T> {
|
||||||
/// assert_eq!(buff.position(), 4);
|
/// assert_eq!(buff.position(), 4);
|
||||||
/// ```
|
/// ```
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
#[rustc_const_stable(feature = "const_mut_cursor", since = "CURRENT_RUSTC_VERSION")]
|
#[rustc_const_stable(feature = "const_mut_cursor", since = "1.86.0")]
|
||||||
pub const fn set_position(&mut self, pos: u64) {
|
pub const fn set_position(&mut self, pos: u64) {
|
||||||
self.pos = pos;
|
self.pos = pos;
|
||||||
}
|
}
|
||||||
|
|
|
@ -191,7 +191,7 @@ impl<T> OnceLock<T> {
|
||||||
/// })
|
/// })
|
||||||
/// ```
|
/// ```
|
||||||
#[inline]
|
#[inline]
|
||||||
#[stable(feature = "once_wait", since = "CURRENT_RUSTC_VERSION")]
|
#[stable(feature = "once_wait", since = "1.86.0")]
|
||||||
pub fn wait(&self) -> &T {
|
pub fn wait(&self) -> &T {
|
||||||
self.once.wait_force();
|
self.once.wait_force();
|
||||||
|
|
||||||
|
|
|
@ -284,7 +284,7 @@ impl Once {
|
||||||
/// If this [`Once`] has been poisoned because an initialization closure has
|
/// If this [`Once`] has been poisoned because an initialization closure has
|
||||||
/// panicked, this method will also panic. Use [`wait_force`](Self::wait_force)
|
/// panicked, this method will also panic. Use [`wait_force`](Self::wait_force)
|
||||||
/// if this behavior is not desired.
|
/// if this behavior is not desired.
|
||||||
#[stable(feature = "once_wait", since = "CURRENT_RUSTC_VERSION")]
|
#[stable(feature = "once_wait", since = "1.86.0")]
|
||||||
pub fn wait(&self) {
|
pub fn wait(&self) {
|
||||||
if !self.inner.is_completed() {
|
if !self.inner.is_completed() {
|
||||||
self.inner.wait(false);
|
self.inner.wait(false);
|
||||||
|
@ -293,7 +293,7 @@ impl Once {
|
||||||
|
|
||||||
/// Blocks the current thread until initialization has completed, ignoring
|
/// Blocks the current thread until initialization has completed, ignoring
|
||||||
/// poisoning.
|
/// poisoning.
|
||||||
#[stable(feature = "once_wait", since = "CURRENT_RUSTC_VERSION")]
|
#[stable(feature = "once_wait", since = "1.86.0")]
|
||||||
pub fn wait_force(&self) {
|
pub fn wait_force(&self) {
|
||||||
if !self.inner.is_completed() {
|
if !self.inner.is_completed() {
|
||||||
self.inner.wait(true);
|
self.inner.wait(true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue