Skip to content

Commit c00486c

Browse files
committed
update version placeholders
1 parent ef1b78e commit c00486c

File tree

10 files changed

+19
-19
lines changed

10 files changed

+19
-19
lines changed

Diff for: compiler/rustc_feature/src/accepted.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ declare_features! (
7777
/// Allows empty structs and enum variants with braces.
7878
(accepted, braced_empty_structs, "1.8.0", Some(29720)),
7979
/// Allows `c"foo"` literals.
80-
(accepted, c_str_literals, "CURRENT_RUSTC_VERSION", Some(105723)),
80+
(accepted, c_str_literals, "1.76.0", Some(105723)),
8181
/// Allows `#[cfg_attr(predicate, multiple, attributes, here)]`.
8282
(accepted, cfg_attr_multi, "1.33.0", Some(54881)),
8383
/// Allows the use of `#[cfg(doctest)]`, set when rustdoc is collecting doctests.
@@ -341,7 +341,7 @@ declare_features! (
341341
(accepted, track_caller, "1.46.0", Some(47809)),
342342
/// Allows dyn upcasting trait objects via supertraits.
343343
/// Dyn upcasting is casting, e.g., `dyn Foo -> dyn Bar` where `Foo: Bar`.
344-
(accepted, trait_upcasting, "CURRENT_RUSTC_VERSION", Some(65991)),
344+
(accepted, trait_upcasting, "1.76.0", Some(65991)),
345345
/// Allows #[repr(transparent)] on univariant enums (RFC 2645).
346346
(accepted, transparent_enums, "1.42.0", Some(60405)),
347347
/// Allows indexing tuples.

Diff for: compiler/rustc_feature/src/removed.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ declare_features! (
177177
/// Allows using the `#[register_attr]` attribute.
178178
(removed, register_attr, "1.65.0", Some(66080),
179179
Some("removed in favor of `#![register_tool]`")),
180-
(removed, rust_2018_preview, "CURRENT_RUSTC_VERSION", None,
180+
(removed, rust_2018_preview, "1.76.0", None,
181181
Some("2018 Edition preview is no longer relevant")),
182182
/// Allows using the macros:
183183
/// + `__diagnostic_used`

Diff for: compiler/rustc_feature/src/unstable.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ declare_features! (
204204
/// Allows using `#[lang = ".."]` attribute for linking items to special compiler logic.
205205
(internal, lang_items, "1.0.0", None),
206206
/// Changes `impl Trait` to capture all lifetimes in scope.
207-
(unstable, lifetime_capture_rules_2024, "CURRENT_RUSTC_VERSION", None),
207+
(unstable, lifetime_capture_rules_2024, "1.76.0", None),
208208
/// Allows `#[link(..., cfg(..))]`; perma-unstable per #37406
209209
(unstable, link_cfg, "1.14.0", None),
210210
/// Allows the `multiple_supertrait_upcastable` lint.
@@ -468,7 +468,7 @@ declare_features! (
468468
/// Allows using `#[repr(align(...))]` on function items
469469
(unstable, fn_align, "1.53.0", Some(82232)),
470470
/// Support delegating implementation of functions to other already implemented functions.
471-
(incomplete, fn_delegation, "CURRENT_RUSTC_VERSION", Some(118212)),
471+
(incomplete, fn_delegation, "1.76.0", Some(118212)),
472472
/// Allows defining gen blocks and `gen fn`.
473473
(unstable, gen_blocks, "1.75.0", Some(117078)),
474474
/// Infer generic args for both consts and types.
@@ -505,7 +505,7 @@ declare_features! (
505505
(unstable, let_chains, "1.37.0", Some(53667)),
506506
/// Allows using `#[link(kind = "link-arg", name = "...")]`
507507
/// to pass custom arguments to the linker.
508-
(unstable, link_arg_attribute, "CURRENT_RUSTC_VERSION", Some(99427)),
508+
(unstable, link_arg_attribute, "1.76.0", Some(99427)),
509509
/// Allows using `reason` in lint attributes and the `#[expect(lint)]` lint check.
510510
(unstable, lint_reasons, "1.31.0", Some(54503)),
511511
/// Give access to additional metadata about declarative macro meta-variables.
@@ -527,7 +527,7 @@ declare_features! (
527527
/// Allow negative trait implementations.
528528
(unstable, negative_impls, "1.44.0", Some(68318)),
529529
/// Allows the `!` pattern.
530-
(incomplete, never_patterns, "CURRENT_RUSTC_VERSION", Some(118155)),
530+
(incomplete, never_patterns, "1.76.0", Some(118155)),
531531
/// Allows the `!` type. Does not imply 'exhaustive_patterns' (below) any more.
532532
(unstable, never_type, "1.13.0", Some(35121)),
533533
/// Allows diverging expressions to fall back to `!` rather than `()`.

Diff for: library/alloc/src/rc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1768,7 +1768,7 @@ impl<T: Clone, A: Allocator + Clone> Rc<T, A> {
17681768
/// assert!(ptr::eq(ptr, inner.as_ptr()));
17691769
/// ```
17701770
#[inline]
1771-
#[stable(feature = "arc_unwrap_or_clone", since = "CURRENT_RUSTC_VERSION")]
1771+
#[stable(feature = "arc_unwrap_or_clone", since = "1.76.0")]
17721772
pub fn unwrap_or_clone(this: Self) -> T {
17731773
Rc::try_unwrap(this).unwrap_or_else(|rc| (*rc).clone())
17741774
}

Diff for: library/alloc/src/sync.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2194,7 +2194,7 @@ impl<T: Clone, A: Allocator + Clone> Arc<T, A> {
21942194
/// assert!(ptr::eq(ptr, inner.as_ptr()));
21952195
/// ```
21962196
#[inline]
2197-
#[stable(feature = "arc_unwrap_or_clone", since = "CURRENT_RUSTC_VERSION")]
2197+
#[stable(feature = "arc_unwrap_or_clone", since = "1.76.0")]
21982198
pub fn unwrap_or_clone(this: Self) -> T {
21992199
Arc::try_unwrap(this).unwrap_or_else(|arc| (*arc).clone())
22002200
}

Diff for: library/core/src/any.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ pub const fn type_name<T: ?Sized>() -> &'static str {
729729
/// assert!(type_name_of_val(&y).contains("f32"));
730730
/// ```
731731
#[must_use]
732-
#[stable(feature = "type_name_of_val", since = "CURRENT_RUSTC_VERSION")]
732+
#[stable(feature = "type_name_of_val", since = "1.76.0")]
733733
#[rustc_const_unstable(feature = "const_type_name", issue = "63084")]
734734
pub const fn type_name_of_val<T: ?Sized>(_val: &T) -> &'static str {
735735
type_name::<T>()

Diff for: library/core/src/option.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ impl<T> Option<T> {
10881088
/// let x: Option<&usize> = v.get(5).inspect(|x| println!("got: {x}"));
10891089
/// ```
10901090
#[inline]
1091-
#[stable(feature = "result_option_inspect", since = "CURRENT_RUSTC_VERSION")]
1091+
#[stable(feature = "result_option_inspect", since = "1.76.0")]
10921092
pub fn inspect<F: FnOnce(&T)>(self, f: F) -> Self {
10931093
if let Some(ref x) = self {
10941094
f(x);

Diff for: library/core/src/ptr/mod.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -720,8 +720,8 @@ where
720720
/// type or mutability, in particular if the code is refactored.
721721
#[inline(always)]
722722
#[must_use]
723-
#[stable(feature = "ptr_from_ref", since = "CURRENT_RUSTC_VERSION")]
724-
#[rustc_const_stable(feature = "ptr_from_ref", since = "CURRENT_RUSTC_VERSION")]
723+
#[stable(feature = "ptr_from_ref", since = "1.76.0")]
724+
#[rustc_const_stable(feature = "ptr_from_ref", since = "1.76.0")]
725725
#[rustc_never_returns_null_ptr]
726726
#[rustc_diagnostic_item = "ptr_from_ref"]
727727
pub const fn from_ref<T: ?Sized>(r: &T) -> *const T {
@@ -734,8 +734,8 @@ pub const fn from_ref<T: ?Sized>(r: &T) -> *const T {
734734
/// type or mutability, in particular if the code is refactored.
735735
#[inline(always)]
736736
#[must_use]
737-
#[stable(feature = "ptr_from_ref", since = "CURRENT_RUSTC_VERSION")]
738-
#[rustc_const_stable(feature = "ptr_from_ref", since = "CURRENT_RUSTC_VERSION")]
737+
#[stable(feature = "ptr_from_ref", since = "1.76.0")]
738+
#[rustc_const_stable(feature = "ptr_from_ref", since = "1.76.0")]
739739
#[rustc_allow_const_fn_unstable(const_mut_refs)]
740740
#[rustc_never_returns_null_ptr]
741741
pub const fn from_mut<T: ?Sized>(r: &mut T) -> *mut T {
@@ -1922,7 +1922,7 @@ pub fn eq<T: ?Sized>(a: *const T, b: *const T) -> bool {
19221922
/// assert!(ptr::addr_eq(whole, first));
19231923
/// assert!(!ptr::eq::<dyn std::fmt::Debug>(whole, first));
19241924
/// ```
1925-
#[stable(feature = "ptr_addr_eq", since = "CURRENT_RUSTC_VERSION")]
1925+
#[stable(feature = "ptr_addr_eq", since = "1.76.0")]
19261926
#[inline(always)]
19271927
#[must_use = "pointer comparison produces a value"]
19281928
pub fn addr_eq<T: ?Sized, U: ?Sized>(p: *const T, q: *const U) -> bool {

Diff for: library/core/src/result.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ impl<T, E> Result<T, E> {
842842
/// .expect("failed to parse number");
843843
/// ```
844844
#[inline]
845-
#[stable(feature = "result_option_inspect", since = "CURRENT_RUSTC_VERSION")]
845+
#[stable(feature = "result_option_inspect", since = "1.76.0")]
846846
pub fn inspect<F: FnOnce(&T)>(self, f: F) -> Self {
847847
if let Ok(ref t) = self {
848848
f(t);
@@ -864,7 +864,7 @@ impl<T, E> Result<T, E> {
864864
/// }
865865
/// ```
866866
#[inline]
867-
#[stable(feature = "result_option_inspect", since = "CURRENT_RUSTC_VERSION")]
867+
#[stable(feature = "result_option_inspect", since = "1.76.0")]
868868
pub fn inspect_err<F: FnOnce(&E)>(self, f: F) -> Self {
869869
if let Err(ref e) = self {
870870
f(e);

Diff for: library/std/src/hash/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,5 @@ pub(crate) mod random;
8787
#[stable(feature = "rust1", since = "1.0.0")]
8888
pub use core::hash::*;
8989

90-
#[stable(feature = "std_hash_exports", since = "CURRENT_RUSTC_VERSION")]
90+
#[stable(feature = "std_hash_exports", since = "1.76.0")]
9191
pub use self::random::{DefaultHasher, RandomState};

0 commit comments

Comments
 (0)