Update CURRENT_RUSTC_VERSION post-bump

This commit is contained in:
Mark Rousskov 2025-09-14 10:30:29 -04:00
parent a015919e54
commit 03265b459f
29 changed files with 138 additions and 138 deletions

View file

@ -205,7 +205,7 @@ declare_features! (
(accepted, extended_key_value_attributes, "1.54.0", Some(78835)),
/// Allows using `aapcs`, `efiapi`, `sysv64` and `win64` as calling conventions
/// for functions with varargs.
(accepted, extended_varargs_abi_support, "CURRENT_RUSTC_VERSION", Some(100189)),
(accepted, extended_varargs_abi_support, "1.91.0", Some(100189)),
/// Allows resolving absolute paths as paths from other crates.
(accepted, extern_absolute_paths, "1.30.0", Some(44660)),
/// Allows `extern crate foo as bar;`. This puts `bar` into extern prelude.
@ -400,7 +400,7 @@ declare_features! (
/// Allows use of `&foo[a..b]` as a slicing syntax.
(accepted, slicing_syntax, "1.0.0", None),
/// Allows use of `sse4a` target feature.
(accepted, sse4a_target_feature, "CURRENT_RUSTC_VERSION", Some(44839)),
(accepted, sse4a_target_feature, "1.91.0", Some(44839)),
/// Allows elision of `'static` lifetimes in `static`s and `const`s.
(accepted, static_in_const, "1.17.0", Some(35897)),
/// Allows the definition recursive static items.
@ -414,7 +414,7 @@ declare_features! (
/// Allows the use of `#[target_feature]` on safe functions.
(accepted, target_feature_11, "1.86.0", Some(69098)),
/// Allows use of `tbm` target feature.
(accepted, tbm_target_feature, "CURRENT_RUSTC_VERSION", Some(44839)),
(accepted, tbm_target_feature, "1.91.0", Some(44839)),
/// Allows `fn main()` with return types which implements `Termination` (RFC 1937).
(accepted, termination_trait, "1.26.0", Some(43301)),
/// Allows `#[test]` functions where the return type implements `Termination` (RFC 1937).

View file

@ -192,7 +192,7 @@ declare_features! (
(removed, no_debug, "1.43.0", Some(29721), Some("removed due to lack of demand"), 69667),
// Allows the use of `no_sanitize` attribute.
/// The feature was renamed to `sanitize` and the attribute to `#[sanitize(xyz = "on|off")]`
(removed, no_sanitize, "CURRENT_RUSTC_VERSION", Some(39699), Some(r#"renamed to sanitize(xyz = "on|off")"#), 142681),
(removed, no_sanitize, "1.91.0", Some(39699), Some(r#"renamed to sanitize(xyz = "on|off")"#), 142681),
/// Note: this feature was previously recorded in a separate
/// `STABLE_REMOVED` list because it, uniquely, was once stable but was
/// then removed. But there was no utility storing it separately, so now
@ -203,7 +203,7 @@ declare_features! (
(removed, object_safe_for_dispatch, "1.83.0", Some(43561),
Some("renamed to `dyn_compatible_for_dispatch`"), 131511),
/// Allows using `#[omit_gdb_pretty_printer_section]`.
(removed, omit_gdb_pretty_printer_section, "CURRENT_RUSTC_VERSION", None, None, 144738),
(removed, omit_gdb_pretty_printer_section, "1.91.0", None, None, 144738),
/// Allows using `#[on_unimplemented(..)]` on traits.
/// (Moved to `rustc_attrs`.)
(removed, on_unimplemented, "1.40.0", None, None, 65794),

View file

@ -327,7 +327,7 @@ declare_features! (
(unstable, m68k_target_feature, "1.85.0", Some(134328)),
(unstable, mips_target_feature, "1.27.0", Some(44839)),
(unstable, movrs_target_feature, "1.88.0", Some(137976)),
(unstable, nvptx_target_feature, "CURRENT_RUSTC_VERSION", Some(44839)),
(unstable, nvptx_target_feature, "1.91.0", Some(44839)),
(unstable, powerpc_target_feature, "1.27.0", Some(44839)),
(unstable, prfchw_target_feature, "1.78.0", Some(44839)),
(unstable, riscv_target_feature, "1.45.0", Some(44839)),
@ -471,7 +471,7 @@ declare_features! (
/// Allows deref patterns.
(incomplete, deref_patterns, "1.79.0", Some(87121)),
/// Allows deriving the From trait on single-field structs.
(unstable, derive_from, "CURRENT_RUSTC_VERSION", Some(144889)),
(unstable, derive_from, "1.91.0", Some(144889)),
/// Tells rustdoc to automatically generate `#[doc(cfg(...))]`.
(unstable, doc_auto_cfg, "1.58.0", Some(43781)),
/// Allows `#[doc(cfg(...))]`.
@ -481,7 +481,7 @@ declare_features! (
/// Allows `#[doc(masked)]`.
(unstable, doc_masked, "1.21.0", Some(44027)),
/// Allows features to allow target_feature to better interact with traits.
(incomplete, effective_target_features, "CURRENT_RUSTC_VERSION", Some(143352)),
(incomplete, effective_target_features, "1.91.0", Some(143352)),
/// Allows the .use postfix syntax `x.use` and use closures `use |x| { ... }`
(incomplete, ergonomic_clones, "1.87.0", Some(132290)),
/// Allows exhaustive pattern matching on types that contain uninhabited types.
@ -554,9 +554,9 @@ declare_features! (
/// Allows fused `loop`/`match` for direct intraprocedural jumps.
(incomplete, loop_match, "1.90.0", Some(132306)),
/// Allow `macro_rules!` attribute rules
(unstable, macro_attr, "CURRENT_RUSTC_VERSION", Some(83527)),
(unstable, macro_attr, "1.91.0", Some(83527)),
/// Allow `macro_rules!` derive rules
(unstable, macro_derive, "CURRENT_RUSTC_VERSION", Some(143549)),
(unstable, macro_derive, "1.91.0", Some(143549)),
/// Give access to additional metadata about declarative macro meta-variables.
(unstable, macro_metavar_expr, "1.61.0", Some(83527)),
/// Provides a way to concatenate identifiers using metavariable expressions.
@ -613,7 +613,7 @@ declare_features! (
(unstable, proc_macro_hygiene, "1.30.0", Some(54727)),
/// Allows the use of raw-dylibs on ELF platforms
(incomplete, raw_dylib_elf, "1.87.0", Some(135694)),
(unstable, reborrow, "CURRENT_RUSTC_VERSION", Some(145612)),
(unstable, reborrow, "1.91.0", Some(145612)),
/// Makes `&` and `&mut` patterns eat only one layer of references in Rust 2024.
(incomplete, ref_pat_eat_one_layer_2024, "1.79.0", Some(123076)),
/// Makes `&` and `&mut` patterns eat only one layer of references in Rust 2024—structural variant
@ -627,13 +627,13 @@ declare_features! (
/// Allows `extern "rust-cold"`.
(unstable, rust_cold_cc, "1.63.0", Some(97544)),
/// Allows the use of the `sanitize` attribute.
(unstable, sanitize, "CURRENT_RUSTC_VERSION", Some(39699)),
(unstable, sanitize, "1.91.0", Some(39699)),
/// Allows the use of SIMD types in functions declared in `extern` blocks.
(unstable, simd_ffi, "1.0.0", Some(27731)),
/// Allows specialization of implementations (RFC 1210).
(incomplete, specialization, "1.7.0", Some(31844)),
/// Allows using `#[rustc_align_static(...)]` on static items.
(unstable, static_align, "CURRENT_RUSTC_VERSION", Some(146177)),
(unstable, static_align, "1.91.0", Some(146177)),
/// Allows attributes on expressions and non-item statements.
(unstable, stmt_expr_attributes, "1.6.0", Some(15701)),
/// Allows lints part of the strict provenance effort.
@ -645,7 +645,7 @@ declare_features! (
/// Allows subtrait items to shadow supertrait items.
(unstable, supertrait_item_shadowing, "1.86.0", Some(89151)),
/// Allows the use of target_feature when a function is marked inline(always).
(unstable, target_feature_inline_always, "CURRENT_RUSTC_VERSION", Some(145574)),
(unstable, target_feature_inline_always, "1.91.0", Some(145574)),
/// Allows using `#[thread_local]` on `static` items.
(unstable, thread_local, "1.0.0", Some(29594)),
/// Allows defining `trait X = A + B;` alias items.

View file

@ -1718,7 +1718,7 @@ impl Default for Box<str> {
}
#[cfg(not(no_global_oom_handling))]
#[stable(feature = "pin_default_impls", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "pin_default_impls", since = "1.91.0")]
impl<T> Default for Pin<Box<T>>
where
T: ?Sized,

View file

@ -1449,7 +1449,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
/// assert_eq!(low.keys().copied().collect::<Vec<_>>(), [0, 1, 2, 3]);
/// assert_eq!(high.keys().copied().collect::<Vec<_>>(), [4, 5, 6, 7]);
/// ```
#[stable(feature = "btree_extract_if", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "btree_extract_if", since = "1.91.0")]
pub fn extract_if<F, R>(&mut self, range: R, pred: F) -> ExtractIf<'_, K, V, R, F, A>
where
K: Ord,
@ -1936,7 +1936,7 @@ impl<K, V> Default for Values<'_, K, V> {
}
/// An iterator produced by calling `extract_if` on BTreeMap.
#[stable(feature = "btree_extract_if", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "btree_extract_if", since = "1.91.0")]
#[must_use = "iterators are lazy and do nothing unless consumed"]
pub struct ExtractIf<
'a,
@ -1969,7 +1969,7 @@ pub(super) struct ExtractIfInner<'a, K, V, R> {
range: R,
}
#[stable(feature = "btree_extract_if", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "btree_extract_if", since = "1.91.0")]
impl<K, V, R, F, A> fmt::Debug for ExtractIf<'_, K, V, R, F, A>
where
K: fmt::Debug,
@ -1981,7 +1981,7 @@ where
}
}
#[stable(feature = "btree_extract_if", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "btree_extract_if", since = "1.91.0")]
impl<K, V, R, F, A: Allocator + Clone> Iterator for ExtractIf<'_, K, V, R, F, A>
where
K: PartialOrd,
@ -2055,7 +2055,7 @@ impl<'a, K, V, R> ExtractIfInner<'a, K, V, R> {
}
}
#[stable(feature = "btree_extract_if", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "btree_extract_if", since = "1.91.0")]
impl<K, V, R, F> FusedIterator for ExtractIf<'_, K, V, R, F>
where
K: PartialOrd,

View file

@ -1218,7 +1218,7 @@ impl<T, A: Allocator + Clone> BTreeSet<T, A> {
/// assert_eq!(low.into_iter().collect::<Vec<_>>(), [0, 1, 2, 3]);
/// assert_eq!(high.into_iter().collect::<Vec<_>>(), [4, 5, 6, 7]);
/// ```
#[stable(feature = "btree_extract_if", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "btree_extract_if", since = "1.91.0")]
pub fn extract_if<F, R>(&mut self, range: R, pred: F) -> ExtractIf<'_, T, R, F, A>
where
T: Ord,
@ -1553,7 +1553,7 @@ impl<'a, T, A: Allocator + Clone> IntoIterator for &'a BTreeSet<T, A> {
}
/// An iterator produced by calling `extract_if` on BTreeSet.
#[stable(feature = "btree_extract_if", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "btree_extract_if", since = "1.91.0")]
#[must_use = "iterators are lazy and do nothing unless consumed"]
pub struct ExtractIf<
'a,
@ -1568,7 +1568,7 @@ pub struct ExtractIf<
alloc: A,
}
#[stable(feature = "btree_extract_if", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "btree_extract_if", since = "1.91.0")]
impl<T, R, F, A> fmt::Debug for ExtractIf<'_, T, R, F, A>
where
T: fmt::Debug,
@ -1581,7 +1581,7 @@ where
}
}
#[stable(feature = "btree_extract_if", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "btree_extract_if", since = "1.91.0")]
impl<T, R, F, A: Allocator + Clone> Iterator for ExtractIf<'_, T, R, F, A>
where
T: PartialOrd,
@ -1601,7 +1601,7 @@ where
}
}
#[stable(feature = "btree_extract_if", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "btree_extract_if", since = "1.91.0")]
impl<T, R, F, A: Allocator + Clone> FusedIterator for ExtractIf<'_, T, R, F, A>
where
T: PartialOrd,

View file

@ -2398,7 +2398,7 @@ impl<T> Default for Rc<[T]> {
}
#[cfg(not(no_global_oom_handling))]
#[stable(feature = "pin_default_impls", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "pin_default_impls", since = "1.91.0")]
impl<T> Default for Pin<Rc<T>>
where
T: ?Sized,

View file

@ -3655,7 +3655,7 @@ impl<T> Default for Arc<[T]> {
}
#[cfg(not(no_global_oom_handling))]
#[stable(feature = "pin_default_impls", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "pin_default_impls", since = "1.91.0")]
impl<T> Default for Pin<Arc<T>>
where
T: ?Sized,

View file

@ -774,7 +774,7 @@ impl TypeId {
/// ```
#[must_use]
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_stable(feature = "const_type_id", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "const_type_id", since = "1.91.0")]
pub const fn of<T: ?Sized + 'static>() -> TypeId {
const { intrinsics::type_id::<T>() }
}

View file

@ -49,7 +49,7 @@ pub use iter::IntoIter;
/// ```
#[inline]
#[must_use = "cloning is often expensive and is not expected to have side effects"]
#[stable(feature = "array_repeat", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "array_repeat", since = "1.91.0")]
pub fn repeat<T: Clone, const N: usize>(val: T) -> [T; N] {
from_trusted_iterator(repeat_n(val, N))
}
@ -622,7 +622,7 @@ impl<T, const N: usize> [T; N] {
/// assert_eq!(strings.len(), 3);
/// ```
#[stable(feature = "array_methods", since = "1.77.0")]
#[rustc_const_stable(feature = "const_array_each_ref", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "const_array_each_ref", since = "1.91.0")]
pub const fn each_ref(&self) -> [&T; N] {
let mut buf = [null::<T>(); N];
@ -653,7 +653,7 @@ impl<T, const N: usize> [T; N] {
/// assert_eq!(floats, [0.0, 2.7, -1.0]);
/// ```
#[stable(feature = "array_methods", since = "1.77.0")]
#[rustc_const_stable(feature = "const_array_each_ref", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "const_array_each_ref", since = "1.91.0")]
pub const fn each_mut(&mut self) -> [&mut T; N] {
let mut buf = [null_mut::<T>(); N];

View file

@ -705,8 +705,8 @@ impl<T, const N: usize> Cell<[T; N]> {
/// let cell_array: &Cell<[i32; 3]> = Cell::from_mut(&mut array);
/// let array_cell: &[Cell<i32>; 3] = cell_array.as_array_of_cells();
/// ```
#[stable(feature = "as_array_of_cells", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "as_array_of_cells", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "as_array_of_cells", since = "1.91.0")]
#[rustc_const_stable(feature = "as_array_of_cells", since = "1.91.0")]
pub const fn as_array_of_cells(&self) -> &[Cell<T>; N] {
// SAFETY: `Cell<T>` has the same memory layout as `T`.
unsafe { &*(self as *const Cell<[T; N]> as *const [Cell<T>; N]) }

View file

@ -60,7 +60,7 @@ impl<A, B> Chain<A, B> {
/// assert_eq!(iter.next(), Some(6));
/// assert_eq!(iter.next(), None);
/// ```
#[stable(feature = "iter_chain", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "iter_chain", since = "1.91.0")]
pub fn chain<A, B>(a: A, b: B) -> Chain<A::IntoIter, B::IntoIter>
where
A: IntoIterator,

View file

@ -32,7 +32,7 @@ mod zip;
pub use self::array_chunks::ArrayChunks;
#[unstable(feature = "std_internals", issue = "none")]
pub use self::by_ref_sized::ByRefSized;
#[stable(feature = "iter_chain", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "iter_chain", since = "1.91.0")]
pub use self::chain::chain;
#[stable(feature = "iter_cloned", since = "1.1.0")]
pub use self::cloned::Cloned;

View file

@ -404,7 +404,7 @@ pub use self::adapters::StepBy;
pub use self::adapters::TrustedRandomAccess;
#[unstable(feature = "trusted_random_access", issue = "none")]
pub use self::adapters::TrustedRandomAccessNoCoerce;
#[stable(feature = "iter_chain", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "iter_chain", since = "1.91.0")]
pub use self::adapters::chain;
pub(crate) use self::adapters::try_process;
#[stable(feature = "iter_zip", since = "1.59.0")]

View file

@ -148,7 +148,7 @@ macro_rules! saturating_integer_sum_product {
saturating_integer_sum_product!(@impls Saturating(0), Saturating(1),
"The short-circuiting behavior of this implementation is unspecified. If you care about \
short-circuiting, use [`Iterator::fold`] directly.",
#[stable(feature = "saturating_iter_arith", since = "CURRENT_RUSTC_VERSION")],
#[stable(feature = "saturating_iter_arith", since = "1.91.0")],
$(Saturating<$a>)*);
);
}

View file

@ -631,8 +631,8 @@ impl Ipv4Addr {
/// let addr = Ipv4Addr::from_octets([13u8, 12u8, 11u8, 10u8]);
/// assert_eq!(Ipv4Addr::new(13, 12, 11, 10), addr);
/// ```
#[stable(feature = "ip_from", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "ip_from", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "ip_from", since = "1.91.0")]
#[rustc_const_stable(feature = "ip_from", since = "1.91.0")]
#[must_use]
#[inline]
pub const fn from_octets(octets: [u8; 4]) -> Ipv4Addr {
@ -1478,8 +1478,8 @@ impl Ipv6Addr {
/// addr
/// );
/// ```
#[stable(feature = "ip_from", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "ip_from", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "ip_from", since = "1.91.0")]
#[rustc_const_stable(feature = "ip_from", since = "1.91.0")]
#[must_use]
#[inline]
pub const fn from_segments(segments: [u16; 8]) -> Ipv6Addr {
@ -2043,8 +2043,8 @@ impl Ipv6Addr {
/// addr
/// );
/// ```
#[stable(feature = "ip_from", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "ip_from", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "ip_from", since = "1.91.0")]
#[rustc_const_stable(feature = "ip_from", since = "1.91.0")]
#[must_use]
#[inline]
pub const fn from_octets(octets: [u8; 16]) -> Ipv6Addr {

View file

@ -519,8 +519,8 @@ macro_rules! int_impl {
/// ```should_panic
#[doc = concat!("let _ = (", stringify!($SelfT), "::MAX - 2).strict_add(3);")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
@ -609,8 +609,8 @@ macro_rules! int_impl {
/// ```should_panic
#[doc = concat!("let _ = (", stringify!($SelfT), "::MAX - 2).strict_add_unsigned(3);")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
@ -659,8 +659,8 @@ macro_rules! int_impl {
/// ```should_panic
#[doc = concat!("let _ = (", stringify!($SelfT), "::MIN + 2).strict_sub(3);")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
@ -749,8 +749,8 @@ macro_rules! int_impl {
/// ```should_panic
#[doc = concat!("let _ = (", stringify!($SelfT), "::MIN + 2).strict_sub_unsigned(3);")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
@ -799,8 +799,8 @@ macro_rules! int_impl {
/// ``` should_panic
#[doc = concat!("let _ = ", stringify!($SelfT), "::MAX.strict_mul(2);")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
@ -906,8 +906,8 @@ macro_rules! int_impl {
/// ```should_panic
#[doc = concat!("let _ = (1", stringify!($SelfT), ").strict_div(0);")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
@ -973,8 +973,8 @@ macro_rules! int_impl {
/// ```should_panic
#[doc = concat!("let _ = (1", stringify!($SelfT), ").strict_div_euclid(0);")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
@ -1139,8 +1139,8 @@ macro_rules! int_impl {
/// ```should_panic
#[doc = concat!("let _ = ", stringify!($SelfT), "::MIN.strict_rem(-1);")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
@ -1205,8 +1205,8 @@ macro_rules! int_impl {
/// ```should_panic
#[doc = concat!("let _ = ", stringify!($SelfT), "::MIN.strict_rem_euclid(-1);")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
@ -1286,8 +1286,8 @@ macro_rules! int_impl {
/// ```should_panic
#[doc = concat!("let _ = ", stringify!($SelfT), "::MIN.strict_neg();")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
@ -1342,8 +1342,8 @@ macro_rules! int_impl {
/// ```should_panic
#[doc = concat!("let _ = 0x1", stringify!($SelfT), ".strict_shl(129);")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
@ -1517,8 +1517,8 @@ macro_rules! int_impl {
/// ```should_panic
#[doc = concat!("let _ = 0x10", stringify!($SelfT), ".strict_shr(128);")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
@ -1693,8 +1693,8 @@ macro_rules! int_impl {
/// ```should_panic
#[doc = concat!("let _ = ", stringify!($SelfT), "::MIN.strict_abs();")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
@ -1762,8 +1762,8 @@ macro_rules! int_impl {
/// ```should_panic
#[doc = concat!("let _ = ", stringify!($SelfT), "::MAX.strict_pow(2);")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]

View file

@ -667,8 +667,8 @@ macro_rules! uint_impl {
/// ```should_panic
#[doc = concat!("let _ = (", stringify!($SelfT), "::MAX - 2).strict_add(3);")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
@ -762,8 +762,8 @@ macro_rules! uint_impl {
/// ```should_panic
#[doc = concat!("let _ = (", stringify!($SelfT), "::MAX - 2).strict_add_signed(3);")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
@ -821,8 +821,8 @@ macro_rules! uint_impl {
/// ```should_panic
#[doc = concat!("let _ = 0", stringify!($SelfT), ".strict_sub(1);")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
@ -946,8 +946,8 @@ macro_rules! uint_impl {
/// ```should_panic
#[doc = concat!("let _ = (", stringify!($SelfT), "::MAX).strict_sub_signed(-1);")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
@ -1002,8 +1002,8 @@ macro_rules! uint_impl {
"::MAX), Some(0));"
)]
/// ```
#[stable(feature = "unsigned_signed_diff", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "unsigned_signed_diff", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "unsigned_signed_diff", since = "1.91.0")]
#[rustc_const_stable(feature = "unsigned_signed_diff", since = "1.91.0")]
#[inline]
pub const fn checked_signed_diff(self, rhs: Self) -> Option<$SignedT> {
let res = self.wrapping_sub(rhs) as $SignedT;
@ -1055,8 +1055,8 @@ macro_rules! uint_impl {
/// ``` should_panic
#[doc = concat!("let _ = ", stringify!($SelfT), "::MAX.strict_mul(2);")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
@ -1151,8 +1151,8 @@ macro_rules! uint_impl {
/// ```should_panic
#[doc = concat!("let _ = (1", stringify!($SelfT), ").strict_div(0);")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline(always)]
@ -1205,8 +1205,8 @@ macro_rules! uint_impl {
/// ```should_panic
#[doc = concat!("let _ = (1", stringify!($SelfT), ").strict_div_euclid(0);")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline(always)]
@ -1353,8 +1353,8 @@ macro_rules! uint_impl {
/// ```should_panic
#[doc = concat!("let _ = 5", stringify!($SelfT), ".strict_rem(0);")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline(always)]
@ -1409,8 +1409,8 @@ macro_rules! uint_impl {
/// ```should_panic
#[doc = concat!("let _ = 5", stringify!($SelfT), ".strict_rem_euclid(0);")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline(always)]
@ -1694,8 +1694,8 @@ macro_rules! uint_impl {
/// ```should_panic
#[doc = concat!("let _ = 1", stringify!($SelfT), ".strict_neg();")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
@ -1750,8 +1750,8 @@ macro_rules! uint_impl {
/// ```should_panic
#[doc = concat!("let _ = 0x10", stringify!($SelfT), ".strict_shl(129);")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
@ -1922,8 +1922,8 @@ macro_rules! uint_impl {
/// ```should_panic
#[doc = concat!("let _ = 0x10", stringify!($SelfT), ".strict_shr(129);")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
@ -2104,8 +2104,8 @@ macro_rules! uint_impl {
/// ```should_panic
#[doc = concat!("let _ = ", stringify!($SelfT), "::MAX.strict_pow(2);")]
/// ```
#[stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[rustc_const_stable(feature = "strict_overflow_ops", since = "1.91.0")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
@ -2682,7 +2682,7 @@ macro_rules! uint_impl {
///
/// assert_eq!((sum1, sum0), (9, 6));
/// ```
#[stable(feature = "unsigned_bigint_helpers", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "unsigned_bigint_helpers", since = "1.91.0")]
#[rustc_const_unstable(feature = "bigint_helper_methods", issue = "85532")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
@ -2774,7 +2774,7 @@ macro_rules! uint_impl {
///
#[doc = concat!("assert_eq!((diff1, diff0), (3, ", stringify!($SelfT), "::MAX));")]
/// ```
#[stable(feature = "unsigned_bigint_helpers", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "unsigned_bigint_helpers", since = "1.91.0")]
#[rustc_const_unstable(feature = "bigint_helper_methods", issue = "85532")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
@ -2991,7 +2991,7 @@ macro_rules! uint_impl {
/// 789_u16.wrapping_mul(456).wrapping_add(123),
/// );
/// ```
#[stable(feature = "unsigned_bigint_helpers", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "unsigned_bigint_helpers", since = "1.91.0")]
#[rustc_const_unstable(feature = "bigint_helper_methods", issue = "85532")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
@ -3057,7 +3057,7 @@ macro_rules! uint_impl {
/// u32::to_le_bytes(0xcffc982d)
/// );
/// ```
#[stable(feature = "unsigned_bigint_helpers", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "unsigned_bigint_helpers", since = "1.91.0")]
#[rustc_const_unstable(feature = "bigint_helper_methods", issue = "85532")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]

View file

@ -975,7 +975,7 @@ pub const fn dangling_mut<T>() -> *mut T {
#[must_use]
#[inline(always)]
#[stable(feature = "exposed_provenance", since = "1.84.0")]
#[rustc_const_stable(feature = "const_exposed_provenance", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "const_exposed_provenance", since = "1.91.0")]
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
#[allow(fuzzy_provenance_casts)] // this *is* the explicit provenance API one should use instead
pub const fn with_exposed_provenance<T>(addr: usize) -> *const T {
@ -1016,7 +1016,7 @@ pub const fn with_exposed_provenance<T>(addr: usize) -> *const T {
#[must_use]
#[inline(always)]
#[stable(feature = "exposed_provenance", since = "1.84.0")]
#[rustc_const_stable(feature = "const_exposed_provenance", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "const_exposed_provenance", since = "1.91.0")]
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
#[allow(fuzzy_provenance_casts)] // this *is* the explicit provenance API one should use instead
pub const fn with_exposed_provenance_mut<T>(addr: usize) -> *mut T {

View file

@ -404,8 +404,8 @@ impl str {
/// assert_eq!(closest, 10);
/// assert_eq!(&s[..closest], "❤️🧡");
/// ```
#[stable(feature = "round_char_boundary", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "round_char_boundary", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "round_char_boundary", since = "1.91.0")]
#[rustc_const_stable(feature = "round_char_boundary", since = "1.91.0")]
#[inline]
pub const fn floor_char_boundary(&self, index: usize) -> usize {
if index >= self.len() {
@ -447,8 +447,8 @@ impl str {
/// assert_eq!(closest, 14);
/// assert_eq!(&s[..closest], "❤️🧡💛");
/// ```
#[stable(feature = "round_char_boundary", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "round_char_boundary", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "round_char_boundary", since = "1.91.0")]
#[rustc_const_stable(feature = "round_char_boundary", since = "1.91.0")]
#[inline]
pub const fn ceil_char_boundary(&self, index: usize) -> usize {
if index >= self.len() {

View file

@ -2208,7 +2208,7 @@ impl<T> AtomicPtr<T> {
/// ```
#[inline]
#[cfg(target_has_atomic = "ptr")]
#[stable(feature = "strict_provenance_atomic_ptr", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_provenance_atomic_ptr", since = "1.91.0")]
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
pub fn fetch_ptr_add(&self, val: usize, order: Ordering) -> *mut T {
self.fetch_byte_add(val.wrapping_mul(size_of::<T>()), order)
@ -2252,7 +2252,7 @@ impl<T> AtomicPtr<T> {
/// ```
#[inline]
#[cfg(target_has_atomic = "ptr")]
#[stable(feature = "strict_provenance_atomic_ptr", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_provenance_atomic_ptr", since = "1.91.0")]
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
pub fn fetch_ptr_sub(&self, val: usize, order: Ordering) -> *mut T {
self.fetch_byte_sub(val.wrapping_mul(size_of::<T>()), order)
@ -2286,7 +2286,7 @@ impl<T> AtomicPtr<T> {
/// ```
#[inline]
#[cfg(target_has_atomic = "ptr")]
#[stable(feature = "strict_provenance_atomic_ptr", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_provenance_atomic_ptr", since = "1.91.0")]
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
pub fn fetch_byte_add(&self, val: usize, order: Ordering) -> *mut T {
// SAFETY: data races are prevented by atomic intrinsics.
@ -2321,7 +2321,7 @@ impl<T> AtomicPtr<T> {
/// ```
#[inline]
#[cfg(target_has_atomic = "ptr")]
#[stable(feature = "strict_provenance_atomic_ptr", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_provenance_atomic_ptr", since = "1.91.0")]
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
pub fn fetch_byte_sub(&self, val: usize, order: Ordering) -> *mut T {
// SAFETY: data races are prevented by atomic intrinsics.
@ -2371,7 +2371,7 @@ impl<T> AtomicPtr<T> {
/// ```
#[inline]
#[cfg(target_has_atomic = "ptr")]
#[stable(feature = "strict_provenance_atomic_ptr", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_provenance_atomic_ptr", since = "1.91.0")]
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
pub fn fetch_or(&self, val: usize, order: Ordering) -> *mut T {
// SAFETY: data races are prevented by atomic intrinsics.
@ -2420,7 +2420,7 @@ impl<T> AtomicPtr<T> {
/// ```
#[inline]
#[cfg(target_has_atomic = "ptr")]
#[stable(feature = "strict_provenance_atomic_ptr", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_provenance_atomic_ptr", since = "1.91.0")]
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
pub fn fetch_and(&self, val: usize, order: Ordering) -> *mut T {
// SAFETY: data races are prevented by atomic intrinsics.
@ -2467,7 +2467,7 @@ impl<T> AtomicPtr<T> {
/// ```
#[inline]
#[cfg(target_has_atomic = "ptr")]
#[stable(feature = "strict_provenance_atomic_ptr", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "strict_provenance_atomic_ptr", since = "1.91.0")]
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
pub fn fetch_xor(&self, val: usize, order: Ordering) -> *mut T {
// SAFETY: data races are prevented by atomic intrinsics.

View file

@ -416,8 +416,8 @@ impl Duration {
/// assert_eq!(6 * 60 * 60, duration.as_secs());
/// assert_eq!(0, duration.subsec_nanos());
/// ```
#[stable(feature = "duration_constructors_lite", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "duration_constructors_lite", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "duration_constructors_lite", since = "1.91.0")]
#[rustc_const_stable(feature = "duration_constructors_lite", since = "1.91.0")]
#[must_use]
#[inline]
pub const fn from_hours(hours: u64) -> Duration {
@ -444,8 +444,8 @@ impl Duration {
/// assert_eq!(10 * 60, duration.as_secs());
/// assert_eq!(0, duration.subsec_nanos());
/// ```
#[stable(feature = "duration_constructors_lite", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "duration_constructors_lite", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "duration_constructors_lite", since = "1.91.0")]
#[rustc_const_stable(feature = "duration_constructors_lite", since = "1.91.0")]
#[must_use]
#[inline]
pub const fn from_mins(mins: u64) -> Duration {

View file

@ -137,7 +137,7 @@ impl OsString {
#[stable(feature = "rust1", since = "1.0.0")]
#[must_use]
#[inline]
#[rustc_const_stable(feature = "const_pathbuf_osstring_new", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "const_pathbuf_osstring_new", since = "1.91.0")]
pub const fn new() -> OsString {
OsString { inner: Buf::from_string(String::new()) }
}

View file

@ -141,7 +141,7 @@ impl OsStrExt for OsStr {
pub struct EncodeWide<'a> {
inner: alloc::wtf8::EncodeWide<'a>,
}
#[stable(feature = "encode_wide_debug", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "encode_wide_debug", since = "1.91.0")]
impl fmt::Debug for EncodeWide<'_> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt::Debug::fmt(&self.inner, f)

View file

@ -122,7 +122,7 @@ impl<'a> PanicHookInfo<'a> {
/// ```
#[must_use]
#[inline]
#[stable(feature = "panic_payload_as_str", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "panic_payload_as_str", since = "1.91.0")]
pub fn payload_as_str(&self) -> Option<&str> {
if let Some(s) = self.payload.downcast_ref::<&str>() {
Some(s)

View file

@ -1191,7 +1191,7 @@ impl PathBuf {
#[stable(feature = "rust1", since = "1.0.0")]
#[must_use]
#[inline]
#[rustc_const_stable(feature = "const_pathbuf_osstring_new", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "const_pathbuf_osstring_new", since = "1.91.0")]
pub const fn new() -> PathBuf {
PathBuf { inner: OsString::new() }
}
@ -1594,7 +1594,7 @@ impl PathBuf {
/// p.add_extension("");
/// assert_eq!(Path::new("/feel/the.formatted.dark"), p.as_path());
/// ```
#[stable(feature = "path_add_extension", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "path_add_extension", since = "1.91.0")]
pub fn add_extension<S: AsRef<OsStr>>(&mut self, extension: S) -> bool {
self._add_extension(extension.as_ref())
}
@ -2103,7 +2103,7 @@ impl PartialEq for PathBuf {
}
}
#[stable(feature = "eq_str_for_path", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "eq_str_for_path", since = "1.91.0")]
impl cmp::PartialEq<str> for PathBuf {
#[inline]
fn eq(&self, other: &str) -> bool {
@ -2111,7 +2111,7 @@ impl cmp::PartialEq<str> for PathBuf {
}
}
#[stable(feature = "eq_str_for_path", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "eq_str_for_path", since = "1.91.0")]
impl cmp::PartialEq<PathBuf> for str {
#[inline]
fn eq(&self, other: &PathBuf) -> bool {
@ -2119,7 +2119,7 @@ impl cmp::PartialEq<PathBuf> for str {
}
}
#[stable(feature = "eq_str_for_path", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "eq_str_for_path", since = "1.91.0")]
impl cmp::PartialEq<String> for PathBuf {
#[inline]
fn eq(&self, other: &String) -> bool {
@ -2127,7 +2127,7 @@ impl cmp::PartialEq<String> for PathBuf {
}
}
#[stable(feature = "eq_str_for_path", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "eq_str_for_path", since = "1.91.0")]
impl cmp::PartialEq<PathBuf> for String {
#[inline]
fn eq(&self, other: &PathBuf) -> bool {
@ -2724,7 +2724,7 @@ impl Path {
///
/// [`Path::file_stem`]: Path::file_stem
///
#[stable(feature = "path_file_prefix", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "path_file_prefix", since = "1.91.0")]
#[must_use]
pub fn file_prefix(&self) -> Option<&OsStr> {
self.file_name().map(split_file_at_dot).and_then(|(before, _after)| Some(before))
@ -2888,7 +2888,7 @@ impl Path {
/// assert_eq!(path.with_added_extension("xz"), PathBuf::from("foo.tar.gz.xz"));
/// assert_eq!(path.with_added_extension("").with_added_extension("txt"), PathBuf::from("foo.tar.gz.txt"));
/// ```
#[stable(feature = "path_add_extension", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "path_add_extension", since = "1.91.0")]
pub fn with_added_extension<S: AsRef<OsStr>>(&self, extension: S) -> PathBuf {
let mut new_path = self.to_path_buf();
new_path.add_extension(extension);
@ -3405,7 +3405,7 @@ impl PartialEq for Path {
}
}
#[stable(feature = "eq_str_for_path", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "eq_str_for_path", since = "1.91.0")]
impl cmp::PartialEq<str> for Path {
#[inline]
fn eq(&self, other: &str) -> bool {
@ -3414,7 +3414,7 @@ impl cmp::PartialEq<str> for Path {
}
}
#[stable(feature = "eq_str_for_path", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "eq_str_for_path", since = "1.91.0")]
impl cmp::PartialEq<Path> for str {
#[inline]
fn eq(&self, other: &Path) -> bool {
@ -3422,7 +3422,7 @@ impl cmp::PartialEq<Path> for str {
}
}
#[stable(feature = "eq_str_for_path", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "eq_str_for_path", since = "1.91.0")]
impl cmp::PartialEq<String> for Path {
#[inline]
fn eq(&self, other: &String) -> bool {
@ -3430,7 +3430,7 @@ impl cmp::PartialEq<String> for Path {
}
}
#[stable(feature = "eq_str_for_path", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "eq_str_for_path", since = "1.91.0")]
impl cmp::PartialEq<Path> for String {
#[inline]
fn eq(&self, other: &Path) -> bool {

View file

@ -57,7 +57,7 @@ $ rustc --target aarch64-apple-ios-macabi your-code.rs
```
The target can be differentiated from the iOS targets with the
`target_env = "macabi"` cfg (or `target_abi = "macabi"` before Rust CURRENT_RUSTC_VERSION).
`target_env = "macabi"` cfg (or `target_abi = "macabi"` before Rust 1.91.0).
```rust
if cfg!(target_env = "macabi") {

View file

@ -68,7 +68,7 @@ $ rustc --target aarch64-apple-ios your-code.rs
The simulator variants can be differentiated from the variants running
on-device with the `target_env = "sim"` cfg (or `target_abi = "sim"` before
Rust CURRENT_RUSTC_VERSION).
Rust 1.91.0).
```rust
if cfg!(all(target_vendor = "apple", target_env = "sim")) {

View file

@ -4,7 +4,7 @@ error[E0557]: feature has been removed
LL | #![feature(no_sanitize)]
| ^^^^^^^^^^^ feature has been removed
|
= note: removed in CURRENT_RUSTC_VERSION; see <https://github.com/rust-lang/rust/pull/142681> for more information
= note: removed in 1.91.0; see <https://github.com/rust-lang/rust/pull/142681> for more information
= note: renamed to sanitize(xyz = "on|off")
error[E0658]: the `#[sanitize]` attribute is an experimental feature