update version placeholders
This commit is contained in:
@@ -96,7 +96,7 @@ declare_features! (
|
||||
/// Allows `#[cfg_attr(predicate, multiple, attributes, here)]`.
|
||||
(accepted, cfg_attr_multi, "1.33.0", Some(54881)),
|
||||
/// Allows the use of `#[cfg(<true/false>)]`.
|
||||
(accepted, cfg_boolean_literals, "CURRENT_RUSTC_VERSION", Some(131204)),
|
||||
(accepted, cfg_boolean_literals, "1.88.0", Some(131204)),
|
||||
/// Allows the use of `#[cfg(doctest)]`, set when rustdoc is collecting doctests.
|
||||
(accepted, cfg_doctest, "1.40.0", Some(62210)),
|
||||
/// Enables `#[cfg(panic = "...")]` config key.
|
||||
@@ -301,7 +301,7 @@ declare_features! (
|
||||
/// For example, you can write `Foo(a, ref b)` where `a` is by-move and `b` is by-ref.
|
||||
(accepted, move_ref_pattern, "1.49.0", Some(68354)),
|
||||
/// Allows using `#[naked]` on functions.
|
||||
(accepted, naked_functions, "CURRENT_RUSTC_VERSION", Some(90957)),
|
||||
(accepted, naked_functions, "1.88.0", Some(90957)),
|
||||
/// Allows specifying modifiers in the link attribute: `#[link(modifiers = "...")]`
|
||||
(accepted, native_link_modifiers, "1.61.0", Some(81490)),
|
||||
/// Allows specifying the bundle link modifier
|
||||
|
||||
@@ -143,7 +143,7 @@ declare_features! (
|
||||
(removed, infer_static_outlives_requirements, "1.63.0", Some(54185),
|
||||
Some("removed as it caused some confusion and discussion was inactive for years")),
|
||||
/// Allow anonymous constants from an inline `const` block in pattern position
|
||||
(removed, inline_const_pat, "CURRENT_RUSTC_VERSION", Some(76001),
|
||||
(removed, inline_const_pat, "1.88.0", Some(76001),
|
||||
Some("removed due to implementation concerns as it requires significant refactorings")),
|
||||
/// Lazily evaluate constants. This allows constants to depend on type parameters.
|
||||
(removed, lazy_normalization_consts, "1.46.0", Some(72219), Some("superseded by `generic_const_exprs`")),
|
||||
|
||||
@@ -206,7 +206,7 @@ declare_features! (
|
||||
/// Allows access to the emscripten_wasm_eh config, used by panic_unwind and unwind
|
||||
(internal, cfg_emscripten_wasm_eh, "1.86.0", None),
|
||||
/// Allows checking whether or not the backend correctly supports unstable float types.
|
||||
(internal, cfg_target_has_reliable_f16_f128, "CURRENT_RUSTC_VERSION", None),
|
||||
(internal, cfg_target_has_reliable_f16_f128, "1.88.0", None),
|
||||
/// Allows identifying the `compiler_builtins` crate.
|
||||
(internal, compiler_builtins, "1.13.0", None),
|
||||
/// Allows writing custom MIR
|
||||
@@ -316,7 +316,7 @@ declare_features! (
|
||||
// Unstable `#[target_feature]` directives.
|
||||
(unstable, aarch64_unstable_target_feature, "1.82.0", Some(44839)),
|
||||
(unstable, aarch64_ver_target_feature, "1.27.0", Some(44839)),
|
||||
(unstable, apx_target_feature, "CURRENT_RUSTC_VERSION", Some(139284)),
|
||||
(unstable, apx_target_feature, "1.88.0", Some(139284)),
|
||||
(unstable, arm_target_feature, "1.27.0", Some(44839)),
|
||||
(unstable, avx512_target_feature, "1.27.0", Some(44839)),
|
||||
(unstable, bpf_target_feature, "1.54.0", Some(44839)),
|
||||
@@ -327,7 +327,7 @@ declare_features! (
|
||||
(unstable, loongarch_target_feature, "1.73.0", Some(44839)),
|
||||
(unstable, m68k_target_feature, "1.85.0", Some(134328)),
|
||||
(unstable, mips_target_feature, "1.27.0", Some(44839)),
|
||||
(unstable, movrs_target_feature, "CURRENT_RUSTC_VERSION", Some(137976)),
|
||||
(unstable, movrs_target_feature, "1.88.0", Some(137976)),
|
||||
(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)),
|
||||
@@ -385,7 +385,7 @@ declare_features! (
|
||||
/// Allows associated type defaults.
|
||||
(unstable, associated_type_defaults, "1.2.0", Some(29661)),
|
||||
/// Allows implementing `AsyncDrop`.
|
||||
(incomplete, async_drop, "CURRENT_RUSTC_VERSION", Some(126482)),
|
||||
(incomplete, async_drop, "1.88.0", Some(126482)),
|
||||
/// Allows async functions to be called from `dyn Trait`.
|
||||
(incomplete, async_fn_in_dyn_trait, "1.85.0", Some(133119)),
|
||||
/// Allows `#[track_caller]` on async functions.
|
||||
@@ -395,7 +395,7 @@ declare_features! (
|
||||
/// Allows `async` trait bound modifier.
|
||||
(unstable, async_trait_bounds, "1.85.0", Some(62290)),
|
||||
/// Allows using Intel AVX10 target features and intrinsics
|
||||
(unstable, avx10_target_feature, "CURRENT_RUSTC_VERSION", Some(138843)),
|
||||
(unstable, avx10_target_feature, "1.88.0", Some(138843)),
|
||||
/// Allows using C-variadics.
|
||||
(unstable, c_variadic, "1.34.0", Some(44930)),
|
||||
/// Allows the use of `#[cfg(contract_checks)` to check if contract checks are enabled.
|
||||
@@ -483,11 +483,11 @@ declare_features! (
|
||||
/// Allows exhaustive pattern matching on types that contain uninhabited types.
|
||||
(unstable, exhaustive_patterns, "1.13.0", Some(51085)),
|
||||
/// Disallows `extern` without an explicit ABI.
|
||||
(unstable, explicit_extern_abis, "CURRENT_RUSTC_VERSION", Some(134986)),
|
||||
(unstable, explicit_extern_abis, "1.88.0", Some(134986)),
|
||||
/// Allows explicit tail calls via `become` expression.
|
||||
(incomplete, explicit_tail_calls, "1.72.0", Some(112788)),
|
||||
/// Allows using `#[export_stable]` which indicates that an item is exportable.
|
||||
(incomplete, export_stable, "CURRENT_RUSTC_VERSION", Some(139939)),
|
||||
(incomplete, export_stable, "1.88.0", Some(139939)),
|
||||
/// Allows using `aapcs`, `efiapi`, `sysv64` and `win64` as calling conventions
|
||||
/// for functions with varargs.
|
||||
(unstable, extended_varargs_abi_support, "1.65.0", Some(100189)),
|
||||
@@ -512,7 +512,7 @@ declare_features! (
|
||||
/// Allows impls for the Freeze trait.
|
||||
(internal, freeze_impls, "1.78.0", Some(121675)),
|
||||
/// Frontmatter `---` blocks for use by external tools.
|
||||
(unstable, frontmatter, "CURRENT_RUSTC_VERSION", Some(136889)),
|
||||
(unstable, frontmatter, "1.88.0", Some(136889)),
|
||||
/// Allows defining gen blocks and `gen fn`.
|
||||
(unstable, gen_blocks, "1.75.0", Some(117078)),
|
||||
/// Infer generic args for both consts and types.
|
||||
@@ -575,7 +575,7 @@ declare_features! (
|
||||
/// Allows `mut ref` and `mut ref mut` identifier patterns.
|
||||
(incomplete, mut_ref, "1.79.0", Some(123076)),
|
||||
/// Allows using `#[naked]` on `extern "Rust"` functions.
|
||||
(unstable, naked_functions_rustic_abi, "CURRENT_RUSTC_VERSION", Some(138997)),
|
||||
(unstable, naked_functions_rustic_abi, "1.88.0", Some(138997)),
|
||||
/// Allows using `#[target_feature(enable = "...")]` on `#[naked]` on functions.
|
||||
(unstable, naked_functions_target_feature, "1.86.0", Some(138568)),
|
||||
/// Allows specifying the as-needed link modifier
|
||||
@@ -641,7 +641,7 @@ declare_features! (
|
||||
/// Allows string patterns to dereference values to match them.
|
||||
(unstable, string_deref_patterns, "1.67.0", Some(87121)),
|
||||
/// Allows `super let` statements.
|
||||
(unstable, super_let, "CURRENT_RUSTC_VERSION", Some(139076)),
|
||||
(unstable, super_let, "1.88.0", Some(139076)),
|
||||
/// Allows subtrait items to shadow supertrait items.
|
||||
(unstable, supertrait_item_shadowing, "1.86.0", Some(89151)),
|
||||
/// Allows using `#[thread_local]` on `static` items.
|
||||
|
||||
@@ -87,5 +87,5 @@ pub use self::c_str::CString;
|
||||
#[stable(feature = "alloc_c_string", since = "1.64.0")]
|
||||
pub use self::c_str::{FromVecWithNulError, IntoStringError, NulError};
|
||||
|
||||
#[stable(feature = "c_str_module", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "c_str_module", since = "1.88.0")]
|
||||
pub mod c_str;
|
||||
|
||||
@@ -32,7 +32,7 @@ pub macro asm("assembly template", $(operands,)* $(options($(option),*))?) {
|
||||
///
|
||||
/// [Rust By Example]: https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html
|
||||
/// [reference]: https://doc.rust-lang.org/nightly/reference/inline-assembly.html
|
||||
#[stable(feature = "naked_functions", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "naked_functions", since = "1.88.0")]
|
||||
#[rustc_builtin_macro]
|
||||
pub macro naked_asm("assembly template", $(operands,)* $(options($(option),*))?) {
|
||||
/* compiler built-in */
|
||||
|
||||
@@ -495,7 +495,7 @@ impl<T> Cell<T> {
|
||||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "move_cell", since = "1.17.0")]
|
||||
#[rustc_const_stable(feature = "const_cell", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_cell", since = "1.88.0")]
|
||||
#[rustc_confusables("swap")]
|
||||
pub const fn replace(&self, val: T) -> T {
|
||||
// SAFETY: This can cause data races if called from a separate thread,
|
||||
@@ -537,7 +537,7 @@ impl<T: Copy> Cell<T> {
|
||||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_const_stable(feature = "const_cell", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_cell", since = "1.88.0")]
|
||||
pub const fn get(&self) -> T {
|
||||
// SAFETY: This can cause data races if called from a separate thread,
|
||||
// but `Cell` is `!Sync` so this won't happen.
|
||||
@@ -556,7 +556,7 @@ impl<T: Copy> Cell<T> {
|
||||
/// assert_eq!(c.get(), 6);
|
||||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "cell_update", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "cell_update", since = "1.88.0")]
|
||||
pub fn update(&self, f: impl FnOnce(T) -> T) {
|
||||
let old = self.get();
|
||||
self.set(f(old));
|
||||
@@ -608,7 +608,7 @@ impl<T: ?Sized> Cell<T> {
|
||||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "cell_get_mut", since = "1.11.0")]
|
||||
#[rustc_const_stable(feature = "const_cell", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_cell", since = "1.88.0")]
|
||||
pub const fn get_mut(&mut self) -> &mut T {
|
||||
self.value.get_mut()
|
||||
}
|
||||
@@ -628,7 +628,7 @@ impl<T: ?Sized> Cell<T> {
|
||||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "as_cell", since = "1.37.0")]
|
||||
#[rustc_const_stable(feature = "const_cell", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_cell", since = "1.88.0")]
|
||||
pub const fn from_mut(t: &mut T) -> &Cell<T> {
|
||||
// SAFETY: `&mut` ensures unique access.
|
||||
unsafe { &*(t as *mut T as *const Cell<T>) }
|
||||
@@ -686,7 +686,7 @@ impl<T> Cell<[T]> {
|
||||
/// assert_eq!(slice_cell.len(), 3);
|
||||
/// ```
|
||||
#[stable(feature = "as_cell", since = "1.37.0")]
|
||||
#[rustc_const_stable(feature = "const_cell", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_cell", since = "1.88.0")]
|
||||
pub const fn as_slice_of_cells(&self) -> &[Cell<T>] {
|
||||
// SAFETY: `Cell<T>` has the same memory layout as `T`.
|
||||
unsafe { &*(self as *const Cell<[T]> as *const [Cell<T>]) }
|
||||
|
||||
@@ -20,7 +20,7 @@ pub use self::c_str::FromBytesUntilNulError;
|
||||
pub use self::c_str::FromBytesWithNulError;
|
||||
use crate::fmt;
|
||||
|
||||
#[stable(feature = "c_str_module", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "c_str_module", since = "1.88.0")]
|
||||
pub mod c_str;
|
||||
|
||||
#[unstable(
|
||||
|
||||
@@ -782,7 +782,7 @@ pub const fn cold_path() {
|
||||
/// # assert_eq!(bucket_one.len() + bucket_two.len(), 1);
|
||||
/// ```
|
||||
#[inline(always)]
|
||||
#[stable(feature = "select_unpredictable", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "select_unpredictable", since = "1.88.0")]
|
||||
pub fn select_unpredictable<T>(condition: bool, true_val: T, false_val: T) -> T {
|
||||
// FIXME(https://github.com/rust-lang/unsafe-code-guidelines/issues/245):
|
||||
// Change this to use ManuallyDrop instead.
|
||||
|
||||
@@ -1741,7 +1741,7 @@ impl<T: ?Sized> PartialOrd for *const T {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "raw_ptr_default", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "raw_ptr_default", since = "1.88.0")]
|
||||
impl<T: ?Sized + Thin> Default for *const T {
|
||||
/// Returns the default value of [`null()`][crate::ptr::null].
|
||||
fn default() -> Self {
|
||||
|
||||
@@ -1101,7 +1101,7 @@ pub const unsafe fn swap<T>(x: *mut T, y: *mut T) {
|
||||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "swap_nonoverlapping", since = "1.27.0")]
|
||||
#[rustc_const_stable(feature = "const_swap_nonoverlapping", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_swap_nonoverlapping", since = "1.88.0")]
|
||||
#[rustc_diagnostic_item = "ptr_swap_nonoverlapping"]
|
||||
#[rustc_allow_const_fn_unstable(const_eval_select)] // both implementations behave the same
|
||||
pub const unsafe fn swap_nonoverlapping<T>(x: *mut T, y: *mut T, count: usize) {
|
||||
|
||||
@@ -1576,7 +1576,7 @@ impl<T: ?Sized> *mut T {
|
||||
///
|
||||
/// [`ptr::replace`]: crate::ptr::replace()
|
||||
#[stable(feature = "pointer_methods", since = "1.26.0")]
|
||||
#[rustc_const_stable(feature = "const_inherent_ptr_replace", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_inherent_ptr_replace", since = "1.88.0")]
|
||||
#[inline(always)]
|
||||
pub const unsafe fn replace(self, src: T) -> T
|
||||
where
|
||||
@@ -2159,7 +2159,7 @@ impl<T: ?Sized> PartialOrd for *mut T {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "raw_ptr_default", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "raw_ptr_default", since = "1.88.0")]
|
||||
impl<T: ?Sized + Thin> Default for *mut T {
|
||||
/// Returns the default value of [`null_mut()`][crate::ptr::null_mut].
|
||||
fn default() -> Self {
|
||||
|
||||
@@ -1166,7 +1166,7 @@ impl<T: ?Sized> NonNull<T> {
|
||||
/// [`ptr::replace`]: crate::ptr::replace()
|
||||
#[inline(always)]
|
||||
#[stable(feature = "non_null_convenience", since = "1.80.0")]
|
||||
#[rustc_const_stable(feature = "const_inherent_ptr_replace", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_inherent_ptr_replace", since = "1.88.0")]
|
||||
pub const unsafe fn replace(self, src: T) -> T
|
||||
where
|
||||
T: Sized,
|
||||
|
||||
@@ -1303,8 +1303,8 @@ impl<T> [T] {
|
||||
/// // let chunks: &[[_; 5]] = slice.as_chunks_unchecked() // The slice length is not a multiple of 5
|
||||
/// // let chunks: &[[_; 0]] = slice.as_chunks_unchecked() // Zero-length chunks are never allowed
|
||||
/// ```
|
||||
#[stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "slice_as_chunks", since = "1.88.0")]
|
||||
#[rustc_const_stable(feature = "slice_as_chunks", since = "1.88.0")]
|
||||
#[inline]
|
||||
#[must_use]
|
||||
pub const unsafe fn as_chunks_unchecked<const N: usize>(&self) -> &[[T; N]] {
|
||||
@@ -1360,8 +1360,8 @@ impl<T> [T] {
|
||||
/// };
|
||||
/// assert_eq!(chunks, &[['R', 'u'], ['s', 't']]);
|
||||
/// ```
|
||||
#[stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "slice_as_chunks", since = "1.88.0")]
|
||||
#[rustc_const_stable(feature = "slice_as_chunks", since = "1.88.0")]
|
||||
#[inline]
|
||||
#[track_caller]
|
||||
#[must_use]
|
||||
@@ -1407,8 +1407,8 @@ impl<T> [T] {
|
||||
/// assert_eq!(remainder, &['l']);
|
||||
/// assert_eq!(chunks, &[['o', 'r'], ['e', 'm']]);
|
||||
/// ```
|
||||
#[stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "slice_as_chunks", since = "1.88.0")]
|
||||
#[rustc_const_stable(feature = "slice_as_chunks", since = "1.88.0")]
|
||||
#[inline]
|
||||
#[track_caller]
|
||||
#[must_use]
|
||||
@@ -1498,8 +1498,8 @@ impl<T> [T] {
|
||||
/// // let chunks: &[[_; 5]] = slice.as_chunks_unchecked_mut() // The slice length is not a multiple of 5
|
||||
/// // let chunks: &[[_; 0]] = slice.as_chunks_unchecked_mut() // Zero-length chunks are never allowed
|
||||
/// ```
|
||||
#[stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "slice_as_chunks", since = "1.88.0")]
|
||||
#[rustc_const_stable(feature = "slice_as_chunks", since = "1.88.0")]
|
||||
#[inline]
|
||||
#[must_use]
|
||||
pub const unsafe fn as_chunks_unchecked_mut<const N: usize>(&mut self) -> &mut [[T; N]] {
|
||||
@@ -1551,8 +1551,8 @@ impl<T> [T] {
|
||||
/// }
|
||||
/// assert_eq!(v, &[1, 1, 2, 2, 9]);
|
||||
/// ```
|
||||
#[stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "slice_as_chunks", since = "1.88.0")]
|
||||
#[rustc_const_stable(feature = "slice_as_chunks", since = "1.88.0")]
|
||||
#[inline]
|
||||
#[track_caller]
|
||||
#[must_use]
|
||||
@@ -1604,8 +1604,8 @@ impl<T> [T] {
|
||||
/// }
|
||||
/// assert_eq!(v, &[9, 1, 1, 2, 2]);
|
||||
/// ```
|
||||
#[stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "slice_as_chunks", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "slice_as_chunks", since = "1.88.0")]
|
||||
#[rustc_const_stable(feature = "slice_as_chunks", since = "1.88.0")]
|
||||
#[inline]
|
||||
#[track_caller]
|
||||
#[must_use]
|
||||
|
||||
@@ -513,13 +513,13 @@ impl Span {
|
||||
}
|
||||
|
||||
/// Creates an empty span pointing to directly before this span.
|
||||
#[stable(feature = "proc_macro_span_location", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "proc_macro_span_location", since = "1.88.0")]
|
||||
pub fn start(&self) -> Span {
|
||||
Span(self.0.start())
|
||||
}
|
||||
|
||||
/// Creates an empty span pointing to directly after this span.
|
||||
#[stable(feature = "proc_macro_span_location", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "proc_macro_span_location", since = "1.88.0")]
|
||||
pub fn end(&self) -> Span {
|
||||
Span(self.0.end())
|
||||
}
|
||||
@@ -527,7 +527,7 @@ impl Span {
|
||||
/// The one-indexed line of the source file where the span starts.
|
||||
///
|
||||
/// To obtain the line of the span's end, use `span.end().line()`.
|
||||
#[stable(feature = "proc_macro_span_location", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "proc_macro_span_location", since = "1.88.0")]
|
||||
pub fn line(&self) -> usize {
|
||||
self.0.line()
|
||||
}
|
||||
@@ -535,7 +535,7 @@ impl Span {
|
||||
/// The one-indexed column of the source file where the span starts.
|
||||
///
|
||||
/// To obtain the column of the span's end, use `span.end().column()`.
|
||||
#[stable(feature = "proc_macro_span_location", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "proc_macro_span_location", since = "1.88.0")]
|
||||
pub fn column(&self) -> usize {
|
||||
self.0.column()
|
||||
}
|
||||
@@ -544,7 +544,7 @@ impl Span {
|
||||
///
|
||||
/// This might not correspond to a valid file system path.
|
||||
/// It might be remapped (e.g. `"/src/lib.rs"`) or an artificial path (e.g. `"<command line>"`).
|
||||
#[stable(feature = "proc_macro_span_file", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "proc_macro_span_file", since = "1.88.0")]
|
||||
pub fn file(&self) -> String {
|
||||
self.0.file()
|
||||
}
|
||||
@@ -554,7 +554,7 @@ impl Span {
|
||||
/// This is the actual path on disk. It is unaffected by path remapping.
|
||||
///
|
||||
/// This path should not be embedded in the output of the macro; prefer `file()` instead.
|
||||
#[stable(feature = "proc_macro_span_file", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "proc_macro_span_file", since = "1.88.0")]
|
||||
pub fn local_file(&self) -> Option<PathBuf> {
|
||||
self.0.local_file().map(|s| PathBuf::from(s))
|
||||
}
|
||||
|
||||
@@ -683,7 +683,7 @@ impl<K, V, S> HashMap<K, V, S> {
|
||||
/// ```
|
||||
#[inline]
|
||||
#[rustc_lint_query_instability]
|
||||
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "hash_extract_if", since = "1.88.0")]
|
||||
pub fn extract_if<F>(&mut self, pred: F) -> ExtractIf<'_, K, V, F>
|
||||
where
|
||||
F: FnMut(&K, &mut V) -> bool,
|
||||
@@ -1680,7 +1680,7 @@ impl<'a, K, V> Drain<'a, K, V> {
|
||||
/// ]);
|
||||
/// let iter = map.extract_if(|_k, v| *v % 2 == 0);
|
||||
/// ```
|
||||
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "hash_extract_if", since = "1.88.0")]
|
||||
#[must_use = "iterators are lazy and do nothing unless consumed"]
|
||||
pub struct ExtractIf<'a, K, V, F> {
|
||||
base: base::ExtractIf<'a, K, V, F>,
|
||||
@@ -2294,7 +2294,7 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "hash_extract_if", since = "1.88.0")]
|
||||
impl<K, V, F> Iterator for ExtractIf<'_, K, V, F>
|
||||
where
|
||||
F: FnMut(&K, &mut V) -> bool,
|
||||
@@ -2311,10 +2311,10 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "hash_extract_if", since = "1.88.0")]
|
||||
impl<K, V, F> FusedIterator for ExtractIf<'_, K, V, F> where F: FnMut(&K, &mut V) -> bool {}
|
||||
|
||||
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "hash_extract_if", since = "1.88.0")]
|
||||
impl<K, V, F> fmt::Debug for ExtractIf<'_, K, V, F>
|
||||
where
|
||||
K: fmt::Debug,
|
||||
|
||||
@@ -308,7 +308,7 @@ impl<T, S> HashSet<T, S> {
|
||||
/// ```
|
||||
#[inline]
|
||||
#[rustc_lint_query_instability]
|
||||
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "hash_extract_if", since = "1.88.0")]
|
||||
pub fn extract_if<F>(&mut self, pred: F) -> ExtractIf<'_, T, F>
|
||||
where
|
||||
F: FnMut(&T) -> bool,
|
||||
@@ -1390,7 +1390,7 @@ pub struct Drain<'a, K: 'a> {
|
||||
///
|
||||
/// let mut extract_ifed = a.extract_if(|v| v % 2 == 0);
|
||||
/// ```
|
||||
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "hash_extract_if", since = "1.88.0")]
|
||||
pub struct ExtractIf<'a, K, F> {
|
||||
base: base::ExtractIf<'a, K, F>,
|
||||
}
|
||||
@@ -1670,7 +1670,7 @@ impl<K: fmt::Debug> fmt::Debug for Drain<'_, K> {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "hash_extract_if", since = "1.88.0")]
|
||||
impl<K, F> Iterator for ExtractIf<'_, K, F>
|
||||
where
|
||||
F: FnMut(&K) -> bool,
|
||||
@@ -1687,10 +1687,10 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "hash_extract_if", since = "1.88.0")]
|
||||
impl<K, F> FusedIterator for ExtractIf<'_, K, F> where F: FnMut(&K) -> bool {}
|
||||
|
||||
#[stable(feature = "hash_extract_if", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "hash_extract_if", since = "1.88.0")]
|
||||
impl<K, F> fmt::Debug for ExtractIf<'_, K, F>
|
||||
where
|
||||
K: fmt::Debug,
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
|
||||
#![stable(feature = "rust1", since = "1.0.0")]
|
||||
|
||||
#[stable(feature = "c_str_module", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "c_str_module", since = "1.88.0")]
|
||||
pub mod c_str;
|
||||
|
||||
#[stable(feature = "core_c_void", since = "1.30.0")]
|
||||
|
||||
@@ -462,7 +462,7 @@ struct Foo;
|
||||
```
|
||||
|
||||
In older versions, this will be ignored on all targets, but starting with
|
||||
version CURRENT_RUSTC_VERSION, `ignore-x86_64` will override `ignore`.
|
||||
version 1.88.0, `ignore-x86_64` will override `ignore`.
|
||||
|
||||
### Custom CSS classes for code blocks
|
||||
|
||||
|
||||
Reference in New Issue
Block a user