mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
replace stabilization placeholders
This commit is contained in:
parent
72f4923979
commit
d0305b3d00
@ -162,7 +162,7 @@ declare_features! (
|
||||
/// Allows capturing variables in scope using format_args!
|
||||
(accepted, format_args_capture, "1.58.0", Some(67984), None),
|
||||
/// Allows associated types to be generic, e.g., `type Foo<T>;` (RFC 1598).
|
||||
(accepted, generic_associated_types, "CURRENT_RUSTC_VERSION", Some(44265), None),
|
||||
(accepted, generic_associated_types, "1.65.0", Some(44265), None),
|
||||
/// Allows attributes on lifetime/type formal parameters in generics (RFC 1327).
|
||||
(accepted, generic_param_attrs, "1.27.0", Some(48848), None),
|
||||
/// Allows the `#[global_allocator]` attribute.
|
||||
@ -189,9 +189,9 @@ declare_features! (
|
||||
/// especially around globs and shadowing (RFC 1560).
|
||||
(accepted, item_like_imports, "1.15.0", Some(35120), None),
|
||||
/// Allows `'a: { break 'a; }`.
|
||||
(accepted, label_break_value, "CURRENT_RUSTC_VERSION", Some(48594), None),
|
||||
(accepted, label_break_value, "1.65.0", Some(48594), None),
|
||||
/// Allows `let...else` statements.
|
||||
(accepted, let_else, "CURRENT_RUSTC_VERSION", Some(87335), None),
|
||||
(accepted, let_else, "1.65.0", Some(87335), None),
|
||||
/// Allows `break {expr}` with a value inside `loop`s.
|
||||
(accepted, loop_break_value, "1.19.0", Some(37339), None),
|
||||
/// Allows use of `?` as the Kleene "at most one" operator in macros.
|
||||
|
@ -341,7 +341,7 @@ declare_features! (
|
||||
/// Allows to use the `#[cmse_nonsecure_entry]` attribute.
|
||||
(active, cmse_nonsecure_entry, "1.48.0", Some(75835), None),
|
||||
/// Allows use of the `#[collapse_debuginfo]` attribute.
|
||||
(active, collapse_debuginfo, "CURRENT_RUSTC_VERSION", Some(100758), None),
|
||||
(active, collapse_debuginfo, "1.65.0", Some(100758), None),
|
||||
/// Allows `async {}` expressions in const contexts.
|
||||
(active, const_async_blocks, "1.53.0", Some(85368), None),
|
||||
// Allows limiting the evaluation steps of const expressions
|
||||
@ -387,7 +387,7 @@ declare_features! (
|
||||
/// Allows `#[doc(masked)]`.
|
||||
(active, doc_masked, "1.21.0", Some(44027), None),
|
||||
/// Allows `dyn* Trait` objects.
|
||||
(incomplete, dyn_star, "CURRENT_RUSTC_VERSION", Some(91611), None),
|
||||
(incomplete, dyn_star, "1.65.0", Some(91611), None),
|
||||
/// Allows `X..Y` patterns.
|
||||
(active, exclusive_range_pattern, "1.11.0", Some(37854), None),
|
||||
/// Allows exhaustive pattern matching on types that contain uninhabited types.
|
||||
@ -403,7 +403,7 @@ declare_features! (
|
||||
/// Allows using `#[repr(align(...))]` on function items
|
||||
(active, fn_align, "1.53.0", Some(82232), None),
|
||||
/// Allows generators to be cloned.
|
||||
(active, generator_clone, "CURRENT_RUSTC_VERSION", Some(95360), None),
|
||||
(active, generator_clone, "1.65.0", Some(95360), None),
|
||||
/// Allows defining generators.
|
||||
(active, generators, "1.21.0", Some(43122), None),
|
||||
/// Infer generic args for both consts and types.
|
||||
@ -484,7 +484,7 @@ declare_features! (
|
||||
/// Allows macro attributes on expressions, statements and non-inline modules.
|
||||
(active, proc_macro_hygiene, "1.30.0", Some(54727), None),
|
||||
/// Allows the use of raw-dylibs (RFC 2627).
|
||||
(active, raw_dylib, "CURRENT_RUSTC_VERSION", Some(58713), None),
|
||||
(active, raw_dylib, "1.65.0", Some(58713), None),
|
||||
/// Allows `&raw const $place_expr` and `&raw mut $place_expr` expressions.
|
||||
(active, raw_ref_op, "1.41.0", Some(64490), None),
|
||||
/// Allows using the `#[register_tool]` attribute.
|
||||
@ -494,7 +494,7 @@ declare_features! (
|
||||
/// Allows `repr(simd)` and importing the various simd intrinsics.
|
||||
(active, repr_simd, "1.4.0", Some(27731), None),
|
||||
/// Allows return-position `impl Trait` in traits.
|
||||
(incomplete, return_position_impl_trait_in_trait, "CURRENT_RUSTC_VERSION", Some(91611), None),
|
||||
(incomplete, return_position_impl_trait_in_trait, "1.65.0", Some(91611), None),
|
||||
/// Allows `extern "rust-cold"`.
|
||||
(active, rust_cold_cc, "1.63.0", Some(97544), None),
|
||||
/// Allows the use of SIMD types in functions declared in `extern` blocks.
|
||||
@ -528,7 +528,7 @@ declare_features! (
|
||||
/// not changed from prior instances of the same struct (RFC #2528)
|
||||
(active, type_changing_struct_update, "1.58.0", Some(86555), None),
|
||||
/// Enables rustc to generate code that instructs libstd to NOT ignore SIGPIPE.
|
||||
(active, unix_sigpipe, "CURRENT_RUSTC_VERSION", Some(97889), None),
|
||||
(active, unix_sigpipe, "1.65.0", Some(97889), None),
|
||||
/// Allows unsized fn parameters.
|
||||
(active, unsized_fn_params, "1.49.0", Some(48055), None),
|
||||
/// Allows unsized rvalues at arguments and parameters.
|
||||
|
@ -164,7 +164,7 @@ declare_features! (
|
||||
(removed, quote, "1.33.0", Some(29601), None, None),
|
||||
(removed, reflect, "1.0.0", Some(27749), None, None),
|
||||
/// Allows using the `#[register_attr]` attribute.
|
||||
(removed, register_attr, "CURRENT_RUSTC_VERSION", Some(66080), None,
|
||||
(removed, register_attr, "1.65.0", Some(66080), None,
|
||||
Some("removed in favor of `#![register_tool]`")),
|
||||
/// Allows using the macros:
|
||||
/// + `__diagnostic_used`
|
||||
|
@ -677,7 +677,7 @@ pub enum Bound<T> {
|
||||
impl<T> Bound<T> {
|
||||
/// Converts from `&Bound<T>` to `Bound<&T>`.
|
||||
#[inline]
|
||||
#[stable(feature = "bound_as_ref_shared", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "bound_as_ref_shared", since = "1.65.0")]
|
||||
pub fn as_ref(&self) -> Bound<&T> {
|
||||
match *self {
|
||||
Included(ref x) => Included(x),
|
||||
|
@ -98,8 +98,8 @@ impl<T: ?Sized> *const T {
|
||||
///
|
||||
/// This is a bit safer than `as` because it wouldn't silently change the type if the code is
|
||||
/// refactored.
|
||||
#[stable(feature = "ptr_const_cast", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "ptr_const_cast", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "ptr_const_cast", since = "1.65.0")]
|
||||
#[rustc_const_stable(feature = "ptr_const_cast", since = "1.65.0")]
|
||||
pub const fn cast_mut(self) -> *mut T {
|
||||
self as _
|
||||
}
|
||||
|
@ -103,8 +103,8 @@ impl<T: ?Sized> *mut T {
|
||||
/// coercion.
|
||||
///
|
||||
/// [`cast_mut`]: #method.cast_mut
|
||||
#[stable(feature = "ptr_const_cast", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "ptr_const_cast", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "ptr_const_cast", since = "1.65.0")]
|
||||
#[rustc_const_stable(feature = "ptr_const_cast", since = "1.65.0")]
|
||||
pub const fn cast_const(self) -> *const T {
|
||||
self as _
|
||||
}
|
||||
|
@ -58,7 +58,7 @@
|
||||
//! `RUST_LIB_BACKTRACE` or `RUST_BACKTRACE` at runtime might not actually change
|
||||
//! how backtraces are captured.
|
||||
|
||||
#![stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
|
||||
#![stable(feature = "backtrace", since = "1.65.0")]
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
@ -104,7 +104,7 @@ use crate::vec::Vec;
|
||||
/// previous point in time. In some instances the `Backtrace` type may
|
||||
/// internally be empty due to configuration. For more information see
|
||||
/// `Backtrace::capture`.
|
||||
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "backtrace", since = "1.65.0")]
|
||||
#[must_use]
|
||||
pub struct Backtrace {
|
||||
inner: Inner,
|
||||
@ -112,21 +112,21 @@ pub struct Backtrace {
|
||||
|
||||
/// The current status of a backtrace, indicating whether it was captured or
|
||||
/// whether it is empty for some other reason.
|
||||
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "backtrace", since = "1.65.0")]
|
||||
#[non_exhaustive]
|
||||
#[derive(Debug, PartialEq, Eq)]
|
||||
pub enum BacktraceStatus {
|
||||
/// Capturing a backtrace is not supported, likely because it's not
|
||||
/// implemented for the current platform.
|
||||
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "backtrace", since = "1.65.0")]
|
||||
Unsupported,
|
||||
/// Capturing a backtrace has been disabled through either the
|
||||
/// `RUST_LIB_BACKTRACE` or `RUST_BACKTRACE` environment variables.
|
||||
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "backtrace", since = "1.65.0")]
|
||||
Disabled,
|
||||
/// A backtrace has been captured and the `Backtrace` should print
|
||||
/// reasonable information when rendered.
|
||||
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "backtrace", since = "1.65.0")]
|
||||
Captured,
|
||||
}
|
||||
|
||||
@ -173,7 +173,7 @@ enum BytesOrWide {
|
||||
Wide(Vec<u16>),
|
||||
}
|
||||
|
||||
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "backtrace", since = "1.65.0")]
|
||||
impl fmt::Debug for Backtrace {
|
||||
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
let capture = match &self.inner {
|
||||
@ -289,7 +289,7 @@ impl Backtrace {
|
||||
///
|
||||
/// To forcibly capture a backtrace regardless of environment variables, use
|
||||
/// the `Backtrace::force_capture` function.
|
||||
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "backtrace", since = "1.65.0")]
|
||||
#[inline(never)] // want to make sure there's a frame here to remove
|
||||
pub fn capture() -> Backtrace {
|
||||
if !Backtrace::enabled() {
|
||||
@ -308,7 +308,7 @@ impl Backtrace {
|
||||
/// Note that capturing a backtrace can be an expensive operation on some
|
||||
/// platforms, so this should be used with caution in performance-sensitive
|
||||
/// parts of code.
|
||||
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "backtrace", since = "1.65.0")]
|
||||
#[inline(never)] // want to make sure there's a frame here to remove
|
||||
pub fn force_capture() -> Backtrace {
|
||||
Backtrace::create(Backtrace::force_capture as usize)
|
||||
@ -316,8 +316,8 @@ impl Backtrace {
|
||||
|
||||
/// Forcibly captures a disabled backtrace, regardless of environment
|
||||
/// variable configuration.
|
||||
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "backtrace", since = "1.65.0")]
|
||||
#[rustc_const_stable(feature = "backtrace", since = "1.65.0")]
|
||||
pub const fn disabled() -> Backtrace {
|
||||
Backtrace { inner: Inner::Disabled }
|
||||
}
|
||||
@ -361,7 +361,7 @@ impl Backtrace {
|
||||
/// Returns the status of this backtrace, indicating whether this backtrace
|
||||
/// request was unsupported, disabled, or a stack trace was actually
|
||||
/// captured.
|
||||
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "backtrace", since = "1.65.0")]
|
||||
#[must_use]
|
||||
pub fn status(&self) -> BacktraceStatus {
|
||||
match self.inner {
|
||||
@ -381,7 +381,7 @@ impl<'a> Backtrace {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "backtrace", since = "1.65.0")]
|
||||
impl fmt::Display for Backtrace {
|
||||
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
let capture = match &self.inner {
|
||||
|
@ -1045,7 +1045,7 @@ pub trait Read {
|
||||
/// Ok(())
|
||||
/// }
|
||||
/// ```
|
||||
#[stable(feature = "io_read_to_string", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "io_read_to_string", since = "1.65.0")]
|
||||
pub fn read_to_string<R: Read>(mut reader: R) -> Result<String> {
|
||||
let mut buf = String::new();
|
||||
reader.read_to_string(&mut buf)?;
|
||||
|
Loading…
Reference in New Issue
Block a user