Skip to content

Commit fb1a6f7

Browse files
committed
Auto merge of rust-lang#129902 - BoxyUwU:beta, r=BoxyUwU
[beta] Prepare Rust 1.82.0 r? `@ghost`
2 parents a7399ba + 1154ecc commit fb1a6f7

File tree

25 files changed

+67
-66
lines changed

25 files changed

+67
-66
lines changed

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

+8-8
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ declare_features! (
6161
/// Allows explicit discriminants on non-unit enum variants.
6262
(accepted, arbitrary_enum_discriminant, "1.66.0", Some(60553)),
6363
/// Allows using `const` operands in inline assembly.
64-
(accepted, asm_const, "CURRENT_RUSTC_VERSION", Some(93332)),
64+
(accepted, asm_const, "1.82.0", Some(93332)),
6565
/// Allows using `sym` operands in inline assembly.
6666
(accepted, asm_sym, "1.66.0", Some(93333)),
6767
/// Allows the definition of associated constants in `trait` or `impl` blocks.
@@ -116,7 +116,7 @@ declare_features! (
116116
/// Allows calling constructor functions in `const fn`.
117117
(accepted, const_constructor, "1.40.0", Some(61456)),
118118
/// Allows basic arithmetic on floating point types in a `const fn`.
119-
(accepted, const_fn_floating_point_arithmetic, "CURRENT_RUSTC_VERSION", Some(57241)),
119+
(accepted, const_fn_floating_point_arithmetic, "1.82.0", Some(57241)),
120120
/// Allows using and casting function pointers in a `const fn`.
121121
(accepted, const_fn_fn_ptr_basics, "1.61.0", Some(57563)),
122122
/// Allows trait bounds in `const fn`.
@@ -272,7 +272,7 @@ declare_features! (
272272
/// Allows calling `const unsafe fn` inside `unsafe` blocks in `const fn` functions.
273273
(accepted, min_const_unsafe_fn, "1.33.0", Some(55607)),
274274
/// Allows exhaustive pattern matching on uninhabited types when matched by value.
275-
(accepted, min_exhaustive_patterns, "CURRENT_RUSTC_VERSION", Some(119612)),
275+
(accepted, min_exhaustive_patterns, "1.82.0", Some(119612)),
276276
/// Allows using `Self` and associated types in struct expressions and patterns.
277277
(accepted, more_struct_aliases, "1.16.0", Some(37544)),
278278
/// Allows using the MOVBE target feature.
@@ -299,7 +299,7 @@ declare_features! (
299299
/// Allows `foo.rs` as an alternative to `foo/mod.rs`.
300300
(accepted, non_modrs_mods, "1.30.0", Some(44660)),
301301
/// Allows using multiple nested field accesses in offset_of!
302-
(accepted, offset_of_nested, "CURRENT_RUSTC_VERSION", Some(120140)),
302+
(accepted, offset_of_nested, "1.82.0", Some(120140)),
303303
/// Allows the use of or-patterns (e.g., `0 | 1`).
304304
(accepted, or_patterns, "1.53.0", Some(54883)),
305305
/// Allows using `+bundle,+whole-archive` link modifiers with native libs.
@@ -312,7 +312,7 @@ declare_features! (
312312
/// Allows parentheses in patterns.
313313
(accepted, pattern_parentheses, "1.31.0", Some(51087)),
314314
/// Allows `use<'a, 'b, A, B>` in `impl Trait + use<...>` for precise capture of generic args.
315-
(accepted, precise_capturing, "CURRENT_RUSTC_VERSION", Some(123432)),
315+
(accepted, precise_capturing, "1.82.0", Some(123432)),
316316
/// Allows procedural macros in `proc-macro` crates.
317317
(accepted, proc_macro, "1.29.0", Some(38356)),
318318
/// Allows multi-segment paths in attributes and derives.
@@ -326,7 +326,7 @@ declare_features! (
326326
/// Allows keywords to be escaped for use as identifiers.
327327
(accepted, raw_identifiers, "1.30.0", Some(48589)),
328328
/// Allows `&raw const $place_expr` and `&raw mut $place_expr` expressions.
329-
(accepted, raw_ref_op, "CURRENT_RUSTC_VERSION", Some(64490)),
329+
(accepted, raw_ref_op, "1.82.0", Some(64490)),
330330
/// Allows relaxing the coherence rules such that
331331
/// `impl<T> ForeignTrait<LocalType> for ForeignType<T>` is permitted.
332332
(accepted, re_rebalance_coherence, "1.41.0", Some(55437)),
@@ -399,11 +399,11 @@ declare_features! (
399399
/// Allows arbitrary delimited token streams in non-macro attributes.
400400
(accepted, unrestricted_attribute_tokens, "1.34.0", Some(55208)),
401401
/// Allows unsafe attributes.
402-
(accepted, unsafe_attributes, "CURRENT_RUSTC_VERSION", Some(123757)),
402+
(accepted, unsafe_attributes, "1.82.0", Some(123757)),
403403
/// The `unsafe_op_in_unsafe_fn` lint (allowed by default): no longer treat an unsafe function as an unsafe block.
404404
(accepted, unsafe_block_in_unsafe_fn, "1.52.0", Some(71668)),
405405
/// Allows unsafe on extern declarations and safety qualifiers over internal items.
406-
(accepted, unsafe_extern_blocks, "CURRENT_RUSTC_VERSION", Some(123743)),
406+
(accepted, unsafe_extern_blocks, "1.82.0", Some(123743)),
407407
/// Allows importing and reexporting macros with `use`,
408408
/// enables macro modularization in general.
409409
(accepted, use_extern_macros, "1.30.0", Some(35896)),

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ declare_features! (
8383
(removed, custom_derive, "1.32.0", Some(29644),
8484
Some("subsumed by `#[proc_macro_derive]`")),
8585
/// Allows default type parameters to influence type inference.
86-
(removed, default_type_parameter_fallback, "CURRENT_RUSTC_VERSION", Some(27336),
86+
(removed, default_type_parameter_fallback, "1.82.0", Some(27336),
8787
Some("never properly implemented; requires significant design work")),
8888
/// Allows using `#[doc(keyword = "...")]`.
8989
(removed, doc_keyword, "1.28.0", Some(51315),

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ declare_features! (
208208
/// Allows `#[link(..., cfg(..))]`; perma-unstable per #37406
209209
(unstable, link_cfg, "1.14.0", None),
210210
/// Allows using `?Trait` trait bounds in more contexts.
211-
(internal, more_maybe_bounds, "CURRENT_RUSTC_VERSION", None),
211+
(internal, more_maybe_bounds, "1.82.0", None),
212212
/// Allows the `multiple_supertrait_upcastable` lint.
213213
(unstable, multiple_supertrait_upcastable, "1.69.0", None),
214214
/// Allow negative trait bounds. This is an internal-only feature for testing the trait solver!
@@ -302,7 +302,7 @@ declare_features! (
302302
// FIXME: Document these and merge with the list below.
303303

304304
// Unstable `#[target_feature]` directives.
305-
(unstable, aarch64_unstable_target_feature, "CURRENT_RUSTC_VERSION", Some(44839)),
305+
(unstable, aarch64_unstable_target_feature, "1.82.0", Some(44839)),
306306
(unstable, aarch64_ver_target_feature, "1.27.0", Some(44839)),
307307
(unstable, arm_target_feature, "1.27.0", Some(44839)),
308308
(unstable, avx512_target_feature, "1.27.0", Some(44839)),
@@ -317,7 +317,7 @@ declare_features! (
317317
(unstable, prfchw_target_feature, "1.78.0", Some(44839)),
318318
(unstable, riscv_target_feature, "1.45.0", Some(44839)),
319319
(unstable, rtm_target_feature, "1.35.0", Some(44839)),
320-
(unstable, s390x_target_feature, "CURRENT_RUSTC_VERSION", Some(44839)),
320+
(unstable, s390x_target_feature, "1.82.0", Some(44839)),
321321
(unstable, sse4a_target_feature, "1.27.0", Some(44839)),
322322
(unstable, tbm_target_feature, "1.27.0", Some(44839)),
323323
(unstable, wasm_target_feature, "1.30.0", Some(44839)),
@@ -472,7 +472,7 @@ declare_features! (
472472
/// Allows the use of `#[ffi_pure]` on foreign functions.
473473
(unstable, ffi_pure, "1.45.0", Some(58329)),
474474
/// Controlling the behavior of fmt::Debug
475-
(unstable, fmt_debug, "CURRENT_RUSTC_VERSION", Some(129709)),
475+
(unstable, fmt_debug, "1.82.0", Some(129709)),
476476
/// Allows using `#[repr(align(...))]` on function items
477477
(unstable, fn_align, "1.53.0", Some(82232)),
478478
/// Support delegating implementation of functions to other already implemented functions.
@@ -584,7 +584,7 @@ declare_features! (
584584
/// Allows `extern "rust-cold"`.
585585
(unstable, rust_cold_cc, "1.63.0", Some(97544)),
586586
/// Allows use of x86 SHA512, SM3 and SM4 target-features and intrinsics
587-
(unstable, sha512_sm_x86, "CURRENT_RUSTC_VERSION", Some(126624)),
587+
(unstable, sha512_sm_x86, "1.82.0", Some(126624)),
588588
/// Shortern the tail expression lifetime
589589
(unstable, shorter_tail_lifetimes, "1.79.0", Some(123739)),
590590
/// Allows the use of SIMD types in functions declared in `extern` blocks.
@@ -598,7 +598,7 @@ declare_features! (
598598
/// Allows string patterns to dereference values to match them.
599599
(unstable, string_deref_patterns, "1.67.0", Some(87121)),
600600
/// Allows structs to carry target_feature information.
601-
(incomplete, struct_target_features, "CURRENT_RUSTC_VERSION", Some(129107)),
601+
(incomplete, struct_target_features, "1.82.0", Some(129107)),
602602
/// Allows the use of `#[target_feature]` on safe functions.
603603
(unstable, target_feature_11, "1.45.0", Some(69098)),
604604
/// Allows using `#[thread_local]` on `static` items.
@@ -625,7 +625,7 @@ declare_features! (
625625
(incomplete, unnamed_fields, "1.74.0", Some(49804)),
626626
/// Allows const generic parameters to be defined with types that
627627
/// are not `Sized`, e.g. `fn foo<const N: [u8]>() {`.
628-
(incomplete, unsized_const_params, "CURRENT_RUSTC_VERSION", Some(95174)),
628+
(incomplete, unsized_const_params, "1.82.0", Some(95174)),
629629
/// Allows unsized fn parameters.
630630
(internal, unsized_fn_params, "1.49.0", Some(48055)),
631631
/// Allows unsized rvalues at arguments and parameters.

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ impl<T> Box<T> {
274274
/// assert_eq!(*five, 5)
275275
/// ```
276276
#[cfg(not(no_global_oom_handling))]
277-
#[stable(feature = "new_uninit", since = "CURRENT_RUSTC_VERSION")]
277+
#[stable(feature = "new_uninit", since = "1.82.0")]
278278
#[must_use]
279279
#[inline]
280280
pub fn new_uninit() -> Box<mem::MaybeUninit<T>> {
@@ -665,7 +665,7 @@ impl<T> Box<[T]> {
665665
/// assert_eq!(*values, [1, 2, 3])
666666
/// ```
667667
#[cfg(not(no_global_oom_handling))]
668-
#[stable(feature = "new_uninit", since = "CURRENT_RUSTC_VERSION")]
668+
#[stable(feature = "new_uninit", since = "1.82.0")]
669669
#[must_use]
670670
pub fn new_uninit_slice(len: usize) -> Box<[mem::MaybeUninit<T>]> {
671671
unsafe { RawVec::with_capacity(len).into_box(len) }
@@ -932,7 +932,7 @@ impl<T, A: Allocator> Box<mem::MaybeUninit<T>, A> {
932932
///
933933
/// assert_eq!(*five, 5)
934934
/// ```
935-
#[stable(feature = "new_uninit", since = "CURRENT_RUSTC_VERSION")]
935+
#[stable(feature = "new_uninit", since = "1.82.0")]
936936
#[inline]
937937
pub unsafe fn assume_init(self) -> Box<T, A> {
938938
let (raw, alloc) = Box::into_raw_with_allocator(self);
@@ -1005,7 +1005,7 @@ impl<T, A: Allocator> Box<[mem::MaybeUninit<T>], A> {
10051005
///
10061006
/// assert_eq!(*values, [1, 2, 3])
10071007
/// ```
1008-
#[stable(feature = "new_uninit", since = "CURRENT_RUSTC_VERSION")]
1008+
#[stable(feature = "new_uninit", since = "1.82.0")]
10091009
#[inline]
10101010
pub unsafe fn assume_init(self) -> Box<[T], A> {
10111011
let (raw, alloc) = Box::into_raw_with_allocator(self);

Diff for: library/alloc/src/collections/binary_heap/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1433,7 +1433,7 @@ pub struct Iter<'a, T: 'a> {
14331433
iter: slice::Iter<'a, T>,
14341434
}
14351435

1436-
#[stable(feature = "default_iters_sequel", since = "CURRENT_RUSTC_VERSION")]
1436+
#[stable(feature = "default_iters_sequel", since = "1.82.0")]
14371437
impl<T> Default for Iter<'_, T> {
14381438
/// Creates an empty `binary_heap::Iter`.
14391439
///

Diff for: library/alloc/src/collections/btree/map.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2016,7 +2016,7 @@ impl<K, V> Default for Range<'_, K, V> {
20162016
}
20172017
}
20182018

2019-
#[stable(feature = "default_iters_sequel", since = "CURRENT_RUSTC_VERSION")]
2019+
#[stable(feature = "default_iters_sequel", since = "1.82.0")]
20202020
impl<K, V> Default for RangeMut<'_, K, V> {
20212021
/// Creates an empty `btree_map::RangeMut`.
20222022
///
@@ -2064,7 +2064,7 @@ impl<K, V> ExactSizeIterator for ValuesMut<'_, K, V> {
20642064
#[stable(feature = "fused", since = "1.26.0")]
20652065
impl<K, V> FusedIterator for ValuesMut<'_, K, V> {}
20662066

2067-
#[stable(feature = "default_iters_sequel", since = "CURRENT_RUSTC_VERSION")]
2067+
#[stable(feature = "default_iters_sequel", since = "1.82.0")]
20682068
impl<K, V> Default for ValuesMut<'_, K, V> {
20692069
/// Creates an empty `btree_map::ValuesMut`.
20702070
///

Diff for: library/alloc/src/collections/vec_deque/iter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl<T: fmt::Debug> fmt::Debug for Iter<'_, T> {
2828
}
2929
}
3030

31-
#[stable(feature = "default_iters_sequel", since = "CURRENT_RUSTC_VERSION")]
31+
#[stable(feature = "default_iters_sequel", since = "1.82.0")]
3232
impl<T> Default for Iter<'_, T> {
3333
/// Creates an empty `vec_deque::Iter`.
3434
///

Diff for: library/alloc/src/collections/vec_deque/iter_mut.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl<T: fmt::Debug> fmt::Debug for IterMut<'_, T> {
2828
}
2929
}
3030

31-
#[stable(feature = "default_iters_sequel", since = "CURRENT_RUSTC_VERSION")]
31+
#[stable(feature = "default_iters_sequel", since = "1.82.0")]
3232
impl<T> Default for IterMut<'_, T> {
3333
/// Creates an empty `vec_deque::IterMut`.
3434
///

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ impl<T> Rc<T> {
517517
/// assert_eq!(*five, 5)
518518
/// ```
519519
#[cfg(not(no_global_oom_handling))]
520-
#[stable(feature = "new_uninit", since = "CURRENT_RUSTC_VERSION")]
520+
#[stable(feature = "new_uninit", since = "1.82.0")]
521521
#[must_use]
522522
pub fn new_uninit() -> Rc<mem::MaybeUninit<T>> {
523523
unsafe {
@@ -980,7 +980,7 @@ impl<T> Rc<[T]> {
980980
/// assert_eq!(*values, [1, 2, 3])
981981
/// ```
982982
#[cfg(not(no_global_oom_handling))]
983-
#[stable(feature = "new_uninit", since = "CURRENT_RUSTC_VERSION")]
983+
#[stable(feature = "new_uninit", since = "1.82.0")]
984984
#[must_use]
985985
pub fn new_uninit_slice(len: usize) -> Rc<[mem::MaybeUninit<T>]> {
986986
unsafe { Rc::from_ptr(Rc::allocate_for_slice(len)) }
@@ -1127,7 +1127,7 @@ impl<T, A: Allocator> Rc<mem::MaybeUninit<T>, A> {
11271127
///
11281128
/// assert_eq!(*five, 5)
11291129
/// ```
1130-
#[stable(feature = "new_uninit", since = "CURRENT_RUSTC_VERSION")]
1130+
#[stable(feature = "new_uninit", since = "1.82.0")]
11311131
#[inline]
11321132
pub unsafe fn assume_init(self) -> Rc<T, A> {
11331133
let (ptr, alloc) = Rc::into_inner_with_allocator(self);
@@ -1167,7 +1167,7 @@ impl<T, A: Allocator> Rc<[mem::MaybeUninit<T>], A> {
11671167
///
11681168
/// assert_eq!(*values, [1, 2, 3])
11691169
/// ```
1170-
#[stable(feature = "new_uninit", since = "CURRENT_RUSTC_VERSION")]
1170+
#[stable(feature = "new_uninit", since = "1.82.0")]
11711171
#[inline]
11721172
pub unsafe fn assume_init(self) -> Rc<[T], A> {
11731173
let (ptr, alloc) = Rc::into_inner_with_allocator(self);

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ impl<T> Arc<T> {
520520
/// ```
521521
#[cfg(not(no_global_oom_handling))]
522522
#[inline]
523-
#[stable(feature = "new_uninit", since = "CURRENT_RUSTC_VERSION")]
523+
#[stable(feature = "new_uninit", since = "1.82.0")]
524524
#[must_use]
525525
pub fn new_uninit() -> Arc<mem::MaybeUninit<T>> {
526526
unsafe {
@@ -1115,7 +1115,7 @@ impl<T> Arc<[T]> {
11151115
/// ```
11161116
#[cfg(not(no_global_oom_handling))]
11171117
#[inline]
1118-
#[stable(feature = "new_uninit", since = "CURRENT_RUSTC_VERSION")]
1118+
#[stable(feature = "new_uninit", since = "1.82.0")]
11191119
#[must_use]
11201120
pub fn new_uninit_slice(len: usize) -> Arc<[mem::MaybeUninit<T>]> {
11211121
unsafe { Arc::from_ptr(Arc::allocate_for_slice(len)) }
@@ -1262,7 +1262,7 @@ impl<T, A: Allocator> Arc<mem::MaybeUninit<T>, A> {
12621262
///
12631263
/// assert_eq!(*five, 5)
12641264
/// ```
1265-
#[stable(feature = "new_uninit", since = "CURRENT_RUSTC_VERSION")]
1265+
#[stable(feature = "new_uninit", since = "1.82.0")]
12661266
#[must_use = "`self` will be dropped if the result is not used"]
12671267
#[inline]
12681268
pub unsafe fn assume_init(self) -> Arc<T, A> {
@@ -1303,7 +1303,7 @@ impl<T, A: Allocator> Arc<[mem::MaybeUninit<T>], A> {
13031303
///
13041304
/// assert_eq!(*values, [1, 2, 3])
13051305
/// ```
1306-
#[stable(feature = "new_uninit", since = "CURRENT_RUSTC_VERSION")]
1306+
#[stable(feature = "new_uninit", since = "1.82.0")]
13071307
#[must_use = "`self` will be dropped if the result is not used"]
13081308
#[inline]
13091309
pub unsafe fn assume_init(self) -> Arc<[T], A> {

Diff for: library/core/src/future/ready.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl<T> Ready<T> {
3939
/// let a = future::ready(1);
4040
/// assert_eq!(a.into_inner(), 1);
4141
/// ```
42-
#[stable(feature = "ready_into_inner", since = "CURRENT_RUSTC_VERSION")]
42+
#[stable(feature = "ready_into_inner", since = "1.82.0")]
4343
#[must_use]
4444
#[inline]
4545
pub fn into_inner(self) -> T {

Diff for: library/core/src/iter/adapters/take.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ impl<I: Iterator + TrustedRandomAccess> SpecTake for Take<I> {
318318
}
319319
}
320320

321-
#[stable(feature = "exact_size_take_repeat", since = "CURRENT_RUSTC_VERSION")]
321+
#[stable(feature = "exact_size_take_repeat", since = "1.82.0")]
322322
impl<T: Clone> DoubleEndedIterator for Take<crate::iter::Repeat<T>> {
323323
#[inline]
324324
fn next_back(&mut self) -> Option<Self::Item> {
@@ -361,14 +361,14 @@ impl<T: Clone> DoubleEndedIterator for Take<crate::iter::Repeat<T>> {
361361
// because we have no way to return value of nth invocation of repeater followed
362362
// by n-1st without remembering all results.
363363

364-
#[stable(feature = "exact_size_take_repeat", since = "CURRENT_RUSTC_VERSION")]
364+
#[stable(feature = "exact_size_take_repeat", since = "1.82.0")]
365365
impl<T: Clone> ExactSizeIterator for Take<crate::iter::Repeat<T>> {
366366
fn len(&self) -> usize {
367367
self.n
368368
}
369369
}
370370

371-
#[stable(feature = "exact_size_take_repeat", since = "CURRENT_RUSTC_VERSION")]
371+
#[stable(feature = "exact_size_take_repeat", since = "1.82.0")]
372372
impl<F: FnMut() -> A, A> ExactSizeIterator for Take<crate::iter::RepeatWith<F>> {
373373
fn len(&self) -> usize {
374374
self.n

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ pub use self::sources::{once, Once};
436436
pub use self::sources::{once_with, OnceWith};
437437
#[stable(feature = "rust1", since = "1.0.0")]
438438
pub use self::sources::{repeat, Repeat};
439-
#[stable(feature = "iter_repeat_n", since = "CURRENT_RUSTC_VERSION")]
439+
#[stable(feature = "iter_repeat_n", since = "1.82.0")]
440440
pub use self::sources::{repeat_n, RepeatN};
441441
#[stable(feature = "iterator_repeat_with", since = "1.28.0")]
442442
pub use self::sources::{repeat_with, RepeatWith};

Diff for: library/core/src/iter/sources.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub use self::once::{once, Once};
2424
pub use self::once_with::{once_with, OnceWith};
2525
#[stable(feature = "rust1", since = "1.0.0")]
2626
pub use self::repeat::{repeat, Repeat};
27-
#[stable(feature = "iter_repeat_n", since = "CURRENT_RUSTC_VERSION")]
27+
#[stable(feature = "iter_repeat_n", since = "1.82.0")]
2828
pub use self::repeat_n::{repeat_n, RepeatN};
2929
#[stable(feature = "iterator_repeat_with", since = "1.28.0")]
3030
pub use self::repeat_with::{repeat_with, RepeatWith};

0 commit comments

Comments
 (0)