Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler/rustc_feature/src/accepted.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ declare_features! (
/// Allows using multiple nested field accesses in offset_of!
(accepted, offset_of_nested, "1.82.0", Some(120140)),
/// Allows using `#[optimize(X)]`.
(accepted, optimize_attribute, "CURRENT_RUSTC_VERSION", Some(54882)),
(accepted, optimize_attribute, "1.101.0", Some(54882)),
/// Allows the use of or-patterns (e.g., `0 | 1`).
(accepted, or_patterns, "1.53.0", Some(54883)),
/// Allows using `+bundle,+whole-archive` link modifiers with native libs.
Expand Down
16 changes: 8 additions & 8 deletions compiler/rustc_feature/src/unstable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ declare_features! (
/// Allows using the `#[fundamental]` attribute.
(unstable, fundamental, "1.0.0", Some(29635)),
/// Allows internal syntax.
(internal, internal_syntax, "CURRENT_RUSTC_VERSION", Some(110680)),
(internal, internal_syntax, "1.101.0", Some(110680)),
/// Allows using `#[link_name="llvm.*"]`.
(internal, link_llvm_intrinsics, "1.0.0", Some(29602)),
/// Allows using the `#[linkage = ".."]` attribute.
Expand Down Expand Up @@ -550,17 +550,17 @@ declare_features! (
/// Traits for function pointers and items
(unstable, fn_static, "1.100.0", Some(148768)),
/// Allows using forced keywords `k#fn`.
(unstable, forced_keywords, "CURRENT_RUSTC_VERSION", Some(153839)),
(unstable, forced_keywords, "1.101.0", Some(153839)),
/// The `Forget` autotrait.
(incomplete, forget_trait, "CURRENT_RUSTC_VERSION", Some(165370)),
(incomplete, forget_trait, "1.101.0", Some(165370)),
/// Allows impls for the Freeze trait.
(internal, freeze_impls, "1.78.0", Some(121675)),
/// Frontmatter `---` blocks for use by external tools.
(unstable, frontmatter, "1.88.0", Some(136889)),
/// Allow function args to be const generics
(incomplete, function_arg_const_generics, "CURRENT_RUSTC_VERSION", Some(163261)),
(incomplete, function_arg_const_generics, "1.101.0", Some(163261)),
/// Allows using ADTs in directly represented generic const args.
(incomplete, gca_adts, "CURRENT_RUSTC_VERSION", Some(163420)),
(incomplete, gca_adts, "1.101.0", Some(163420)),
/// Allows using generics in more complex const expressions, based on definitional equality.
(incomplete, gca_const_items, "1.95.0", Some(151972)),
/// Allows directly represented gca_const_items without the `gca!` macro.
Expand Down Expand Up @@ -634,7 +634,7 @@ declare_features! (
(unstable, macro_metavar_expr_concat, "1.81.0", Some(124225)),
/// Allows explicitly marking type aliases as unchecked / opting type aliases
/// out of being checked even if `checked_type_aliases` is enabled or they're a TAIT.
(unstable, marked_unchecked_type_aliases, "CURRENT_RUSTC_VERSION", Some(112792)),
(unstable, marked_unchecked_type_aliases, "1.101.0", Some(112792)),
/// Allows `#[marker]` on certain traits allowing overlapping implementations.
(unstable, marker_trait_attr, "1.30.0", Some(29864)),
/// Allows additional const parameter types, such as [u8; 10] or user defined types.
Expand All @@ -649,9 +649,9 @@ declare_features! (
/// Allows qualified paths in struct expressions, struct patterns and tuple struct patterns.
(unstable, more_qualified_paths, "1.54.0", Some(86935)),
/// The `movdir64b` target feature on x86.
(unstable, movdir64b_target_feature, "CURRENT_RUSTC_VERSION", Some(163741)),
(unstable, movdir64b_target_feature, "1.101.0", Some(163741)),
/// The `movdiri` target feature on x86.
(unstable, movdiri_target_feature, "CURRENT_RUSTC_VERSION", Some(163741)),
(unstable, movdiri_target_feature, "1.101.0", Some(163741)),
/// Allows `move(expr)` in closures.
(incomplete, move_expr, "1.97.0", Some(155050)),
/// The `movrs` target feature on x86.
Expand Down
4 changes: 2 additions & 2 deletions library/alloc/src/collections/binary_heap/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1441,7 +1441,7 @@ impl<T, A: Allocator> BinaryHeap<T, A> {
#[must_use]
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_confusables("length", "size")]
#[rustc_const_stable(feature = "const_binary_heap_len", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "const_binary_heap_len", since = "1.101.0")]
pub const fn len(&self) -> usize {
self.data.len()
}
Expand All @@ -1466,7 +1466,7 @@ impl<T, A: Allocator> BinaryHeap<T, A> {
/// ```
#[must_use]
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_stable(feature = "const_binary_heap_len", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "const_binary_heap_len", since = "1.101.0")]
pub const fn is_empty(&self) -> bool {
self.len() == 0
}
Expand Down
4 changes: 2 additions & 2 deletions library/alloc/src/collections/btree/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2837,7 +2837,7 @@ impl<K, V, A: AllocatorClone> BTreeMap<K, V, A> {
/// ```
#[must_use]
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_stable(feature = "const_btree_len", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "const_btree_len", since = "1.101.0")]
#[rustc_confusables("length", "size")]
pub const fn len(&self) -> usize {
self.length
Expand All @@ -2857,7 +2857,7 @@ impl<K, V, A: AllocatorClone> BTreeMap<K, V, A> {
/// ```
#[must_use]
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_stable(feature = "const_btree_len", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "const_btree_len", since = "1.101.0")]
pub const fn is_empty(&self) -> bool {
self.len() == 0
}
Expand Down
4 changes: 2 additions & 2 deletions library/alloc/src/collections/btree/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1266,7 +1266,7 @@ impl<T, A: AllocatorClone> BTreeSet<T, A> {
/// ```
#[must_use]
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_stable(feature = "const_btree_len", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "const_btree_len", since = "1.101.0")]
#[rustc_confusables("length", "size")]
pub const fn len(&self) -> usize {
self.map.len()
Expand All @@ -1286,7 +1286,7 @@ impl<T, A: AllocatorClone> BTreeSet<T, A> {
/// ```
#[must_use]
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_stable(feature = "const_btree_len", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "const_btree_len", since = "1.101.0")]
pub const fn is_empty(&self) -> bool {
self.len() == 0
}
Expand Down
4 changes: 2 additions & 2 deletions library/alloc/src/collections/linked_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ impl<T, A: Allocator> LinkedList<T, A> {
#[inline]
#[must_use]
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_stable(feature = "const_linked_list_len", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "const_linked_list_len", since = "1.101.0")]
pub const fn is_empty(&self) -> bool {
self.head.is_none()
}
Expand Down Expand Up @@ -697,7 +697,7 @@ impl<T, A: Allocator> LinkedList<T, A> {
#[inline]
#[must_use]
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_stable(feature = "const_linked_list_len", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "const_linked_list_len", since = "1.101.0")]
#[rustc_confusables("length", "size")]
pub const fn len(&self) -> usize {
self.len
Expand Down
4 changes: 2 additions & 2 deletions library/alloc/src/collections/vec_deque/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1804,7 +1804,7 @@ impl<T, A: Allocator> VecDeque<T, A> {
/// assert_eq!(deque.len(), 1);
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_stable(feature = "const_vec_deque_len", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "const_vec_deque_len", since = "1.101.0")]
#[rustc_confusables("length", "size")]
pub const fn len(&self) -> usize {
self.len
Expand All @@ -1823,7 +1823,7 @@ impl<T, A: Allocator> VecDeque<T, A> {
/// assert!(!deque.is_empty());
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_stable(feature = "const_vec_deque_len", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "const_vec_deque_len", since = "1.101.0")]
pub const fn is_empty(&self) -> bool {
self.len == 0
}
Expand Down
2 changes: 1 addition & 1 deletion library/alloc/src/rcs/arc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2925,7 +2925,7 @@ impl<T: ?Sized, A: Allocator> Arc<T, A> {
///
/// [`get_mut_unchecked`]: Self::get_mut_unchecked
#[inline]
#[stable(feature = "arc_is_unique", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "arc_is_unique", since = "1.101.0")]
pub fn is_unique(this: &Self) -> bool {
// lock the weak pointer count if we appear to be the sole weak pointer
// holder.
Expand Down
2 changes: 1 addition & 1 deletion library/alloc/src/rcs/rc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2045,7 +2045,7 @@ impl<T: ?Sized, A: Allocator> Rc<T, A> {
///
/// [`get_mut_unchecked`]: Self::get_mut_unchecked
#[inline]
#[stable(feature = "arc_is_unique", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "arc_is_unique", since = "1.101.0")]
pub fn is_unique(this: &Self) -> bool {
Rc::weak_count(this) == 0 && Rc::strong_count(this) == 1
}
Expand Down
16 changes: 8 additions & 8 deletions library/alloc/src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2098,7 +2098,7 @@ impl String {
/// [`char`]: prim@char
#[inline]
#[must_use = "`self` will be dropped if the result is not used"]
#[stable(feature = "string_into_chars", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "string_into_chars", since = "1.101.0")]
pub fn into_chars(self) -> IntoChars {
IntoChars { bytes: self.into_bytes().into_iter() }
}
Expand Down Expand Up @@ -3610,12 +3610,12 @@ impl fmt::Write for String {
/// [`into_chars`]: String::into_chars
#[cfg_attr(not(no_global_oom_handling), derive(Clone))]
#[must_use = "iterators are lazy and do nothing unless consumed"]
#[stable(feature = "string_into_chars", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "string_into_chars", since = "1.101.0")]
pub struct IntoChars {
bytes: vec::IntoIter<u8>,
}

#[stable(feature = "string_into_chars", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "string_into_chars", since = "1.101.0")]
impl fmt::Debug for IntoChars {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_tuple("IntoChars").field(&self.as_str()).finish()
Expand All @@ -3637,7 +3637,7 @@ impl IntoChars {
/// chars.next();
/// assert_eq!(chars.as_str(), "");
/// ```
#[stable(feature = "string_into_chars", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "string_into_chars", since = "1.101.0")]
#[must_use]
#[inline]
pub fn as_str(&self) -> &str {
Expand All @@ -3658,7 +3658,7 @@ impl IntoChars {
/// assert_eq!(chars.into_string(), "ef");
/// ```
#[cfg(not(no_global_oom_handling))]
#[stable(feature = "string_into_chars", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "string_into_chars", since = "1.101.0")]
#[inline]
pub fn into_string(self) -> String {
// SAFETY: `bytes` are kept in UTF-8 form, only removing whole `char`s at a time.
Expand All @@ -3671,7 +3671,7 @@ impl IntoChars {
}
}

#[stable(feature = "string_into_chars", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "string_into_chars", since = "1.101.0")]
impl Iterator for IntoChars {
type Item = char;

Expand Down Expand Up @@ -3705,7 +3705,7 @@ impl Iterator for IntoChars {
}
}

#[stable(feature = "string_into_chars", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "string_into_chars", since = "1.101.0")]
impl DoubleEndedIterator for IntoChars {
#[inline]
fn next_back(&mut self) -> Option<char> {
Expand All @@ -3722,7 +3722,7 @@ impl DoubleEndedIterator for IntoChars {
}
}

#[stable(feature = "string_into_chars", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "string_into_chars", since = "1.101.0")]
impl FusedIterator for IntoChars {}

/// A draining iterator for `String`.
Expand Down
4 changes: 2 additions & 2 deletions library/alloc/src/vec/into_iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ macro non_null {
#[rustc_insignificant_dtor]
pub struct IntoIter<
T,
#[stable(feature = "vec_into_iter_allocator", since = "CURRENT_RUSTC_VERSION")] A: Allocator = Global,
#[stable(feature = "vec_into_iter_allocator", since = "1.101.0")] A: Allocator = Global,
> {
pub(super) buf: NonNull<T>,
pub(super) phantom: PhantomData<T>,
Expand Down Expand Up @@ -112,7 +112,7 @@ impl<T, A: Allocator> IntoIter<T, A> {
}

/// Returns a reference to the underlying allocator.
#[stable(feature = "vec_into_iter_allocator", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "vec_into_iter_allocator", since = "1.101.0")]
#[inline]
pub fn allocator(&self) -> &A {
&self.alloc
Expand Down
4 changes: 2 additions & 2 deletions library/alloc/src/vec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2351,7 +2351,7 @@ impl<T, A: Allocator> Vec<T, A> {
/// assert_eq!(v.try_remove(0), Some(1));
/// assert_eq!(v.try_remove(2), None);
/// ```
#[stable(feature = "vec_try_remove", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "vec_try_remove", since = "1.101.0")]
#[rustc_confusables("delete", "take", "remove")]
pub fn try_remove(&mut self, index: usize) -> Option<T> {
let len = self.len();
Expand Down Expand Up @@ -3949,7 +3949,7 @@ fn find_first_duplicate<T: PartialEq>(v: &[T], chunk_size: usize) -> Option<usiz
#[stable(feature = "rust1", since = "1.0.0")]
// NOTE: the real deprecation version is the same as the stabilization version.
// I.e. it should never have been used even in version 1.0.
#[deprecated(since = "CURRENT_RUSTC_VERSION", note = "use the `vec!` macro instead")]
#[deprecated(since = "1.101.0", note = "use the `vec!` macro instead")]
pub fn from_elem<T: Clone>(elem: T, n: usize) -> Vec<T> {
vec![elem; n]
}
Expand Down
8 changes: 4 additions & 4 deletions library/core/src/ffi/c_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ impl CStr {
/// let cstr = c"Hello, world!";
/// println!("{}", cstr.display());
/// ```
#[stable(feature = "cstr_display", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "cstr_display", since = "1.101.0")]
#[must_use = "this does not display the `CStr`; \
it returns an object that can be displayed"]
#[inline]
Expand Down Expand Up @@ -874,19 +874,19 @@ impl FusedIterator for Bytes<'_> {}
///
/// [`Display`]: fmt::Display
/// [`format!`]: ../../../std/macro.format.html
#[stable(feature = "cstr_display", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "cstr_display", since = "1.101.0")]
pub struct Display<'a> {
c_str: &'a CStr,
}

#[stable(feature = "cstr_display", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "cstr_display", since = "1.101.0")]
impl fmt::Debug for Display<'_> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt::Debug::fmt(&self.c_str, f)
}
}

#[stable(feature = "cstr_display", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "cstr_display", since = "1.101.0")]
impl fmt::Display for Display<'_> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt::Display::fmt(crate::byte_str::ByteStr::from_bytes(self.c_str.to_bytes()), f)
Expand Down
12 changes: 6 additions & 6 deletions library/core/src/fmt/builders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {
/// r#"Bar { bar: 0x0000000a, another: "Hello World" }"#,
/// );
/// ```
#[stable(feature = "debug_closure_helpers", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "debug_closure_helpers", since = "1.101.0")]
pub fn field_with(
&mut self,
name: &str,
Expand Down Expand Up @@ -426,7 +426,7 @@ impl<'a, 'b: 'a> DebugTuple<'a, 'b> {
/// r#"Foo(0x0000000a, "Hello World")"#,
/// );
/// ```
#[stable(feature = "debug_closure_helpers", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "debug_closure_helpers", since = "1.101.0")]
pub fn field_with(
&mut self,
value_fmt: impl FnOnce(&mut fmt::Formatter<'_>) -> fmt::Result,
Expand Down Expand Up @@ -652,7 +652,7 @@ impl<'a, 'b: 'a> DebugSet<'a, 'b> {
/// "{[10, 11], {12, 13}}",
/// );
/// ```
#[stable(feature = "debug_closure_helpers", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "debug_closure_helpers", since = "1.101.0")]
pub fn entry_with(
&mut self,
entry_fmt: impl FnOnce(&mut fmt::Formatter<'_>) -> fmt::Result,
Expand Down Expand Up @@ -867,7 +867,7 @@ impl<'a, 'b: 'a> DebugList<'a, 'b> {
/// "[[10, 11], {12, 13}]",
/// );
/// ```
#[stable(feature = "debug_closure_helpers", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "debug_closure_helpers", since = "1.101.0")]
pub fn entry_with(
&mut self,
entry_fmt: impl FnOnce(&mut fmt::Formatter<'_>) -> fmt::Result,
Expand Down Expand Up @@ -1158,7 +1158,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
/// r#"{entry A: 0x0000000a, entry B: 0x0000000b}"#,
/// );
/// ```
#[stable(feature = "debug_closure_helpers", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "debug_closure_helpers", since = "1.101.0")]
pub fn key_with(
&mut self,
key_fmt: impl FnOnce(&mut fmt::Formatter<'_>) -> fmt::Result,
Expand Down Expand Up @@ -1256,7 +1256,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
/// r#"{entry A: 0x0000000a, entry B: 0x0000000b}"#,
/// );
/// ```
#[stable(feature = "debug_closure_helpers", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "debug_closure_helpers", since = "1.101.0")]
pub fn value_with(
&mut self,
value_fmt: impl FnOnce(&mut fmt::Formatter<'_>) -> fmt::Result,
Expand Down
2 changes: 1 addition & 1 deletion library/core/src/fmt/num_buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl<T: NumBufferTrait> NumBuffer<T> {
}
}

#[stable(feature = "num_buffer_default", since = "CURRENT_RUSTC_VERSION")]
#[stable(feature = "num_buffer_default", since = "1.101.0")]
impl<T: NumBufferTrait> Default for NumBuffer<T> {
fn default() -> Self {
Self::new()
Expand Down
Loading
Loading