mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Update version placeholders
This commit is contained in:
@@ -83,7 +83,7 @@ macro_rules! declare_features {
|
||||
/// Allows overloading augmented assignment operations like `a += b`.
|
||||
(accepted, augmented_assignments, "1.8.0", Some(28235)),
|
||||
/// Allows using `avx512*` target features.
|
||||
(accepted, avx512_target_feature, "CURRENT_RUSTC_VERSION", Some(44839)),
|
||||
(accepted, avx512_target_feature, "1.89.0", Some(44839)),
|
||||
/// Allows mixing bind-by-move in patterns and references to those identifiers in guards.
|
||||
(accepted, bind_by_move_pattern_guards, "1.39.0", Some(15287)),
|
||||
/// Allows bindings in the subpattern of a binding pattern.
|
||||
@@ -221,7 +221,7 @@ macro_rules! declare_features {
|
||||
/// Allows capturing variables in scope using format_args!
|
||||
(accepted, format_args_capture, "1.58.0", Some(67984)),
|
||||
/// Infer generic args for both consts and types.
|
||||
(accepted, generic_arg_infer, "CURRENT_RUSTC_VERSION", Some(85077)),
|
||||
(accepted, generic_arg_infer, "1.89.0", Some(85077)),
|
||||
/// Allows associated types to be generic, e.g., `type Foo<T>;` (RFC 1598).
|
||||
(accepted, generic_associated_types, "1.65.0", Some(44265)),
|
||||
/// Allows attributes on lifetime/type formal parameters in generics (RFC 1327).
|
||||
@@ -262,7 +262,7 @@ macro_rules! declare_features {
|
||||
/// especially around globs and shadowing (RFC 1560).
|
||||
(accepted, item_like_imports, "1.15.0", Some(35120)),
|
||||
// Allows using the `kl` and `widekl` target features and the associated intrinsics
|
||||
(accepted, keylocker_x86, "CURRENT_RUSTC_VERSION", Some(134813)),
|
||||
(accepted, keylocker_x86, "1.89.0", Some(134813)),
|
||||
/// Allows `'a: { break 'a; }`.
|
||||
(accepted, label_break_value, "1.65.0", Some(48594)),
|
||||
/// Allows `let...else` statements.
|
||||
@@ -365,7 +365,7 @@ macro_rules! declare_features {
|
||||
/// Lessens the requirements for structs to implement `Unsize`.
|
||||
(accepted, relaxed_struct_unsize, "1.58.0", Some(81793)),
|
||||
/// Allows the `#[repr(i128)]` attribute for enums.
|
||||
(accepted, repr128, "CURRENT_RUSTC_VERSION", Some(56071)),
|
||||
(accepted, repr128, "1.89.0", Some(56071)),
|
||||
/// Allows `repr(align(16))` struct attribute (RFC 1358).
|
||||
(accepted, repr_align, "1.25.0", Some(33626)),
|
||||
/// Allows using `#[repr(align(X))]` on enums with equivalent semantics
|
||||
@@ -387,7 +387,7 @@ macro_rules! declare_features {
|
||||
/// Allows `Self` struct constructor (RFC 2302).
|
||||
(accepted, self_struct_ctor, "1.32.0", Some(51994)),
|
||||
/// Allows use of x86 SHA512, SM3 and SM4 target-features and intrinsics
|
||||
(accepted, sha512_sm_x86, "CURRENT_RUSTC_VERSION", Some(126624)),
|
||||
(accepted, sha512_sm_x86, "1.89.0", Some(126624)),
|
||||
/// Shortern the tail expression lifetime
|
||||
(accepted, shorter_tail_lifetimes, "1.84.0", Some(123739)),
|
||||
/// Allows using subslice patterns, `[a, .., b]` and `[a, xs @ .., b]`.
|
||||
|
||||
@@ -221,7 +221,7 @@ macro_rules! declare_features {
|
||||
/// Allows exhaustive integer pattern matching with `usize::MAX`/`isize::MIN`/`isize::MAX`.
|
||||
(removed, precise_pointer_size_matching, "1.76.0", Some(56354),
|
||||
Some("removed in favor of half-open ranges"), 118598),
|
||||
(removed, pref_align_of, "CURRENT_RUSTC_VERSION", Some(91971),
|
||||
(removed, pref_align_of, "1.89.0", Some(91971),
|
||||
Some("removed due to marginal use and inducing compiler complications")),
|
||||
(removed, proc_macro_expr, "1.27.0", Some(54727),
|
||||
Some("subsumed by `#![feature(proc_macro_hygiene)]`"), 52121),
|
||||
@@ -264,7 +264,7 @@ macro_rules! declare_features {
|
||||
(removed, unnamed_fields, "1.83.0", Some(49804), Some("feature needs redesign"), 131045),
|
||||
(removed, unsafe_no_drop_flag, "1.0.0", None, None),
|
||||
/// Allows unsized rvalues at arguments and parameters.
|
||||
(removed, unsized_locals, "CURRENT_RUSTC_VERSION", Some(48055), Some("removed due to implementation concerns; see https://github.com/rust-lang/rust/issues/111942")),
|
||||
(removed, unsized_locals, "1.89.0", Some(48055), Some("removed due to implementation concerns; see https://github.com/rust-lang/rust/issues/111942")),
|
||||
(removed, unsized_tuple_coercion, "1.87.0", Some(42877),
|
||||
Some("The feature restricts possible layouts for tuples, and this restriction is not worth it."), 137728),
|
||||
/// Allows `union` fields that don't implement `Copy` as long as they don't have any drop glue.
|
||||
|
||||
@@ -238,7 +238,7 @@ pub fn internal(&self, feature: Symbol) -> bool {
|
||||
/// Allows using `rustc_*` attributes (RFC 572).
|
||||
(internal, rustc_attrs, "1.0.0", None),
|
||||
/// Introduces a hierarchy of `Sized` traits (RFC 3729).
|
||||
(unstable, sized_hierarchy, "CURRENT_RUSTC_VERSION", None),
|
||||
(unstable, sized_hierarchy, "1.89.0", None),
|
||||
/// Allows using the `#[stable]` and `#[unstable]` attributes.
|
||||
(internal, staged_api, "1.0.0", None),
|
||||
/// Added for testing unstable lints; perma-unstable.
|
||||
@@ -356,7 +356,7 @@ pub fn internal(&self, feature: Symbol) -> bool {
|
||||
/// Allows `extern "C-cmse-nonsecure-call" fn()`.
|
||||
(unstable, abi_c_cmse_nonsecure_call, "1.51.0", Some(81391)),
|
||||
/// Allows `extern "custom" fn()`.
|
||||
(unstable, abi_custom, "CURRENT_RUSTC_VERSION", Some(140829)),
|
||||
(unstable, abi_custom, "1.89.0", Some(140829)),
|
||||
/// Allows `extern "gpu-kernel" fn()`.
|
||||
(unstable, abi_gpu_kernel, "1.86.0", Some(135467)),
|
||||
/// Allows `extern "msp430-interrupt" fn()`.
|
||||
@@ -376,7 +376,7 @@ pub fn internal(&self, feature: Symbol) -> bool {
|
||||
/// Allows inherent and trait methods with arbitrary self types that are raw pointers.
|
||||
(unstable, arbitrary_self_types_pointers, "1.83.0", Some(44874)),
|
||||
/// Allows #[cfg(...)] on inline assembly templates and operands.
|
||||
(unstable, asm_cfg, "CURRENT_RUSTC_VERSION", Some(140364)),
|
||||
(unstable, asm_cfg, "1.89.0", Some(140364)),
|
||||
/// Enables experimental inline assembly support for additional architectures.
|
||||
(unstable, asm_experimental_arch, "1.58.0", Some(93335)),
|
||||
/// Enables experimental register support in inline assembly.
|
||||
|
||||
@@ -224,7 +224,7 @@ pub fn as_mut_slice(&mut self) -> &mut [T] {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "array_value_iter_default", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "array_value_iter_default", since = "1.89.0")]
|
||||
impl<T, const N: usize> Default for IntoIter<T, N> {
|
||||
fn default() -> Self {
|
||||
IntoIter::empty()
|
||||
|
||||
@@ -588,7 +588,7 @@ pub const fn as_slice(&self) -> &[T] {
|
||||
/// Returns a mutable slice containing the entire array. Equivalent to
|
||||
/// `&mut s[..]`.
|
||||
#[stable(feature = "array_as_slice", since = "1.57.0")]
|
||||
#[rustc_const_stable(feature = "const_array_as_mut_slice", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_array_as_mut_slice", since = "1.89.0")]
|
||||
pub const fn as_mut_slice(&mut self) -> &mut [T] {
|
||||
self
|
||||
}
|
||||
|
||||
@@ -284,7 +284,7 @@ fn deref(&self) -> &T {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "lazy_deref_mut", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "lazy_deref_mut", since = "1.89.0")]
|
||||
impl<T, F: FnOnce() -> T> DerefMut for LazyCell<T, F> {
|
||||
#[inline]
|
||||
fn deref_mut(&mut self) -> &mut T {
|
||||
|
||||
@@ -94,8 +94,8 @@ impl<T: Sized> NonNull<T> {
|
||||
/// For more details, see the equivalent method on a raw pointer, [`ptr::without_provenance_mut`].
|
||||
///
|
||||
/// This is a [Strict Provenance][crate::ptr#strict-provenance] API.
|
||||
#[stable(feature = "nonnull_provenance", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "nonnull_provenance", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "nonnull_provenance", since = "1.89.0")]
|
||||
#[rustc_const_stable(feature = "nonnull_provenance", since = "1.89.0")]
|
||||
#[must_use]
|
||||
#[inline]
|
||||
pub const fn without_provenance(addr: NonZero<usize>) -> Self {
|
||||
@@ -138,7 +138,7 @@ pub const fn dangling() -> Self {
|
||||
/// For more details, see the equivalent method on a raw pointer, [`ptr::with_exposed_provenance_mut`].
|
||||
///
|
||||
/// This is an [Exposed Provenance][crate::ptr#exposed-provenance] API.
|
||||
#[stable(feature = "nonnull_provenance", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "nonnull_provenance", since = "1.89.0")]
|
||||
#[inline]
|
||||
pub fn with_exposed_provenance(addr: NonZero<usize>) -> Self {
|
||||
// SAFETY: we know `addr` is non-zero.
|
||||
@@ -269,8 +269,8 @@ pub const fn new(ptr: *mut T) -> Option<Self> {
|
||||
}
|
||||
|
||||
/// Converts a reference to a `NonNull` pointer.
|
||||
#[stable(feature = "non_null_from_ref", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "non_null_from_ref", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "non_null_from_ref", since = "1.89.0")]
|
||||
#[rustc_const_stable(feature = "non_null_from_ref", since = "1.89.0")]
|
||||
#[inline]
|
||||
pub const fn from_ref(r: &T) -> Self {
|
||||
// SAFETY: A reference cannot be null.
|
||||
@@ -278,8 +278,8 @@ pub const fn from_ref(r: &T) -> Self {
|
||||
}
|
||||
|
||||
/// Converts a mutable reference to a `NonNull` pointer.
|
||||
#[stable(feature = "non_null_from_ref", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "non_null_from_ref", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "non_null_from_ref", since = "1.89.0")]
|
||||
#[rustc_const_stable(feature = "non_null_from_ref", since = "1.89.0")]
|
||||
#[inline]
|
||||
pub const fn from_mut(r: &mut T) -> Self {
|
||||
// SAFETY: A mutable reference cannot be null.
|
||||
@@ -335,7 +335,7 @@ pub fn addr(self) -> NonZero<usize> {
|
||||
/// For more details, see the equivalent method on a raw pointer, [`pointer::expose_provenance`].
|
||||
///
|
||||
/// This is an [Exposed Provenance][crate::ptr#exposed-provenance] API.
|
||||
#[stable(feature = "nonnull_provenance", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "nonnull_provenance", since = "1.89.0")]
|
||||
pub fn expose_provenance(self) -> NonZero<usize> {
|
||||
// SAFETY: The pointer is guaranteed by the type to be non-null,
|
||||
// meaning that the address will be non-zero.
|
||||
|
||||
@@ -1740,9 +1740,9 @@ impl<T, E> Result<Result<T, E>, E> {
|
||||
/// assert_eq!(Ok("hello"), x.flatten().flatten());
|
||||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "result_flattening", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "result_flattening", since = "1.89.0")]
|
||||
#[rustc_allow_const_fn_unstable(const_precise_live_drops)]
|
||||
#[rustc_const_stable(feature = "result_flattening", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "result_flattening", since = "1.89.0")]
|
||||
pub const fn flatten(self) -> Result<T, E> {
|
||||
// FIXME(const-hack): could be written with `and_then`
|
||||
match self {
|
||||
|
||||
@@ -52,7 +52,7 @@ pub const fn as_ascii(&self) -> Option<&[ascii::Char]> {
|
||||
/// Same as `to_ascii_lowercase(a) == to_ascii_lowercase(b)`,
|
||||
/// but without allocating and copying temporaries.
|
||||
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
|
||||
#[rustc_const_stable(feature = "const_eq_ignore_ascii_case", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_eq_ignore_ascii_case", since = "1.89.0")]
|
||||
#[must_use]
|
||||
#[inline]
|
||||
pub const fn eq_ignore_ascii_case(&self, other: &[u8]) -> bool {
|
||||
|
||||
@@ -3376,7 +3376,7 @@ fn next_back(&mut self) -> Option<Self::Item> {
|
||||
#[stable(feature = "slice_group_by", since = "1.77.0")]
|
||||
impl<'a, T: 'a, P> FusedIterator for ChunkBy<'a, T, P> where P: FnMut(&T, &T) -> bool {}
|
||||
|
||||
#[stable(feature = "slice_group_by_clone", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "slice_group_by_clone", since = "1.89.0")]
|
||||
impl<'a, T: 'a, P: Clone> Clone for ChunkBy<'a, T, P> {
|
||||
fn clone(&self) -> Self {
|
||||
Self { slice: self.slice, predicate: self.predicate.clone() }
|
||||
|
||||
@@ -2748,7 +2748,7 @@ pub const fn as_ascii(&self) -> Option<&[ascii::Char]> {
|
||||
/// assert!(!"Ferrös".eq_ignore_ascii_case("FERRÖS"));
|
||||
/// ```
|
||||
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
|
||||
#[rustc_const_stable(feature = "const_eq_ignore_ascii_case", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_eq_ignore_ascii_case", since = "1.89.0")]
|
||||
#[must_use]
|
||||
#[inline]
|
||||
pub const fn eq_ignore_ascii_case(&self, other: &str) -> bool {
|
||||
|
||||
@@ -568,7 +568,7 @@ pub fn into_boxed_os_str(self) -> Box<OsStr> {
|
||||
/// However, keep in mind that trimming the capacity may result in a reallocation and copy.
|
||||
///
|
||||
/// [`into_boxed_os_str`]: Self::into_boxed_os_str
|
||||
#[stable(feature = "os_string_pathbuf_leak", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "os_string_pathbuf_leak", since = "1.89.0")]
|
||||
#[inline]
|
||||
pub fn leak<'a>(self) -> &'a mut OsStr {
|
||||
OsStr::from_inner_mut(self.inner.leak())
|
||||
|
||||
+10
-10
@@ -121,7 +121,7 @@ pub struct File {
|
||||
///
|
||||
/// [`try_lock`]: File::try_lock
|
||||
/// [`try_lock_shared`]: File::try_lock_shared
|
||||
#[stable(feature = "file_lock", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "file_lock", since = "1.89.0")]
|
||||
pub enum TryLockError {
|
||||
/// The lock could not be acquired due to an I/O error on the file. The standard library will
|
||||
/// not return an [`ErrorKind::WouldBlock`] error inside [`TryLockError::Error`]
|
||||
@@ -366,10 +366,10 @@ fn inner(path: &Path, contents: &[u8]) -> io::Result<()> {
|
||||
inner(path.as_ref(), contents.as_ref())
|
||||
}
|
||||
|
||||
#[stable(feature = "file_lock", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "file_lock", since = "1.89.0")]
|
||||
impl error::Error for TryLockError {}
|
||||
|
||||
#[stable(feature = "file_lock", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "file_lock", since = "1.89.0")]
|
||||
impl fmt::Debug for TryLockError {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
match self {
|
||||
@@ -379,7 +379,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "file_lock", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "file_lock", since = "1.89.0")]
|
||||
impl fmt::Display for TryLockError {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
match self {
|
||||
@@ -390,7 +390,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "file_lock", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "file_lock", since = "1.89.0")]
|
||||
impl From<TryLockError> for io::Error {
|
||||
fn from(err: TryLockError) -> io::Error {
|
||||
match err {
|
||||
@@ -721,7 +721,7 @@ pub fn sync_data(&self) -> io::Result<()> {
|
||||
/// Ok(())
|
||||
/// }
|
||||
/// ```
|
||||
#[stable(feature = "file_lock", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "file_lock", since = "1.89.0")]
|
||||
pub fn lock(&self) -> io::Result<()> {
|
||||
self.inner.lock()
|
||||
}
|
||||
@@ -773,7 +773,7 @@ pub fn lock(&self) -> io::Result<()> {
|
||||
/// Ok(())
|
||||
/// }
|
||||
/// ```
|
||||
#[stable(feature = "file_lock", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "file_lock", since = "1.89.0")]
|
||||
pub fn lock_shared(&self) -> io::Result<()> {
|
||||
self.inner.lock_shared()
|
||||
}
|
||||
@@ -837,7 +837,7 @@ pub fn lock_shared(&self) -> io::Result<()> {
|
||||
/// Ok(())
|
||||
/// }
|
||||
/// ```
|
||||
#[stable(feature = "file_lock", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "file_lock", since = "1.89.0")]
|
||||
pub fn try_lock(&self) -> Result<(), TryLockError> {
|
||||
self.inner.try_lock()
|
||||
}
|
||||
@@ -901,7 +901,7 @@ pub fn try_lock(&self) -> Result<(), TryLockError> {
|
||||
/// Ok(())
|
||||
/// }
|
||||
/// ```
|
||||
#[stable(feature = "file_lock", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "file_lock", since = "1.89.0")]
|
||||
pub fn try_lock_shared(&self) -> Result<(), TryLockError> {
|
||||
self.inner.try_lock_shared()
|
||||
}
|
||||
@@ -938,7 +938,7 @@ pub fn try_lock_shared(&self) -> Result<(), TryLockError> {
|
||||
/// Ok(())
|
||||
/// }
|
||||
/// ```
|
||||
#[stable(feature = "file_lock", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "file_lock", since = "1.89.0")]
|
||||
pub fn unlock(&self) -> io::Result<()> {
|
||||
self.inner.unlock()
|
||||
}
|
||||
|
||||
@@ -3128,7 +3128,7 @@ fn upper_bound(&self) -> Option<usize> {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "seek_io_take", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "seek_io_take", since = "1.89.0")]
|
||||
impl<T: Seek> Seek for Take<T> {
|
||||
fn seek(&mut self, pos: SeekFrom) -> Result<u64> {
|
||||
let new_position = match pos {
|
||||
|
||||
@@ -6,5 +6,5 @@
|
||||
pub use crate::os::net::linux_ext::addr::SocketAddrExt;
|
||||
#[unstable(feature = "unix_socket_ancillary_data", issue = "76915")]
|
||||
pub use crate::os::net::linux_ext::socket::UnixSocketExt;
|
||||
#[stable(feature = "tcp_quickack", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "tcp_quickack", since = "1.89.0")]
|
||||
pub use crate::os::net::linux_ext::tcp::TcpStreamExt;
|
||||
|
||||
@@ -6,5 +6,5 @@
|
||||
pub use crate::os::net::linux_ext::addr::SocketAddrExt;
|
||||
#[unstable(feature = "unix_socket_ancillary_data", issue = "76915")]
|
||||
pub use crate::os::net::linux_ext::socket::UnixSocketExt;
|
||||
#[stable(feature = "tcp_quickack", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "tcp_quickack", since = "1.89.0")]
|
||||
pub use crate::os::net::linux_ext::tcp::TcpStreamExt;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#[unstable(feature = "unix_socket_ancillary_data", issue = "76915")]
|
||||
pub(crate) mod socket;
|
||||
|
||||
#[stable(feature = "tcp_quickack", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "tcp_quickack", since = "1.89.0")]
|
||||
pub(crate) mod tcp;
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
/// Os-specific extensions for [`TcpStream`]
|
||||
///
|
||||
/// [`TcpStream`]: net::TcpStream
|
||||
#[stable(feature = "tcp_quickack", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "tcp_quickack", since = "1.89.0")]
|
||||
pub trait TcpStreamExt: Sealed {
|
||||
/// Enable or disable `TCP_QUICKACK`.
|
||||
///
|
||||
@@ -33,7 +33,7 @@ pub trait TcpStreamExt: Sealed {
|
||||
/// .expect("Couldn't connect to the server...");
|
||||
/// stream.set_quickack(true).expect("set_quickack call failed");
|
||||
/// ```
|
||||
#[stable(feature = "tcp_quickack", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "tcp_quickack", since = "1.89.0")]
|
||||
fn set_quickack(&self, quickack: bool) -> io::Result<()>;
|
||||
|
||||
/// Gets the value of the `TCP_QUICKACK` option on this socket.
|
||||
@@ -54,7 +54,7 @@ pub trait TcpStreamExt: Sealed {
|
||||
/// stream.set_quickack(true).expect("set_quickack call failed");
|
||||
/// assert_eq!(stream.quickack().unwrap_or(false), true);
|
||||
/// ```
|
||||
#[stable(feature = "tcp_quickack", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "tcp_quickack", since = "1.89.0")]
|
||||
fn quickack(&self) -> io::Result<bool>;
|
||||
|
||||
/// A socket listener will be awakened solely when data arrives.
|
||||
@@ -103,10 +103,10 @@ pub trait TcpStreamExt: Sealed {
|
||||
fn deferaccept(&self) -> io::Result<u32>;
|
||||
}
|
||||
|
||||
#[stable(feature = "tcp_quickack", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "tcp_quickack", since = "1.89.0")]
|
||||
impl Sealed for net::TcpStream {}
|
||||
|
||||
#[stable(feature = "tcp_quickack", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "tcp_quickack", since = "1.89.0")]
|
||||
impl TcpStreamExt for net::TcpStream {
|
||||
fn set_quickack(&self, quickack: bool) -> io::Result<()> {
|
||||
self.as_inner().as_inner().set_quickack(quickack)
|
||||
|
||||
@@ -1252,7 +1252,7 @@ pub fn as_path(&self) -> &Path {
|
||||
/// However, keep in mind that trimming the capacity may result in a reallocation and copy.
|
||||
///
|
||||
/// [`into_boxed_path`]: Self::into_boxed_path
|
||||
#[stable(feature = "os_string_pathbuf_leak", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "os_string_pathbuf_leak", since = "1.89.0")]
|
||||
#[inline]
|
||||
pub fn leak<'a>(self) -> &'a mut Path {
|
||||
Path::from_inner_mut(self.inner.leak())
|
||||
|
||||
@@ -313,7 +313,7 @@ fn deref(&self) -> &T {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "lazy_deref_mut", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "lazy_deref_mut", since = "1.89.0")]
|
||||
impl<T, F: FnOnce() -> T> DerefMut for LazyLock<T, F> {
|
||||
#[inline]
|
||||
fn deref_mut(&mut self) -> &mut T {
|
||||
|
||||
@@ -4,7 +4,7 @@ error[E0557]: feature has been removed
|
||||
LL | #![feature(unsized_locals)]
|
||||
| ^^^^^^^^^^^^^^ feature has been removed
|
||||
|
|
||||
= note: removed in CURRENT_RUSTC_VERSION (you are using $RUSTC_VERSION)
|
||||
= note: removed in 1.89.0 (you are using $RUSTC_VERSION)
|
||||
= note: removed due to implementation concerns; see https://github.com/rust-lang/rust/issues/111942
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
Reference in New Issue
Block a user