Skip to content

Commit 2a65764

Browse files
committed
Auto merge of rust-lang#102015 - rust-lang:pa-beta-next, r=pietroalbini
[beta] Prepare beta 1.65.0 This PR prepares the beta branch for Rust 1.65.0. r? `@ghost` cc `@rust-lang/release`
2 parents 48de123 + ce70c6f commit 2a65764

File tree

10 files changed

+33
-30
lines changed

10 files changed

+33
-30
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ declare_features! (
162162
/// Allows capturing variables in scope using format_args!
163163
(accepted, format_args_capture, "1.58.0", Some(67984), None),
164164
/// Allows associated types to be generic, e.g., `type Foo<T>;` (RFC 1598).
165-
(accepted, generic_associated_types, "CURRENT_RUSTC_VERSION", Some(44265), None),
165+
(accepted, generic_associated_types, "1.65.0", Some(44265), None),
166166
/// Allows attributes on lifetime/type formal parameters in generics (RFC 1327).
167167
(accepted, generic_param_attrs, "1.27.0", Some(48848), None),
168168
/// Allows the `#[global_allocator]` attribute.
@@ -189,9 +189,9 @@ declare_features! (
189189
/// especially around globs and shadowing (RFC 1560).
190190
(accepted, item_like_imports, "1.15.0", Some(35120), None),
191191
/// Allows `'a: { break 'a; }`.
192-
(accepted, label_break_value, "CURRENT_RUSTC_VERSION", Some(48594), None),
192+
(accepted, label_break_value, "1.65.0", Some(48594), None),
193193
/// Allows `let...else` statements.
194-
(accepted, let_else, "CURRENT_RUSTC_VERSION", Some(87335), None),
194+
(accepted, let_else, "1.65.0", Some(87335), None),
195195
/// Allows `break {expr}` with a value inside `loop`s.
196196
(accepted, loop_break_value, "1.19.0", Some(37339), None),
197197
/// Allows use of `?` as the Kleene "at most one" operator in macros.

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ declare_features! (
339339
/// Allows to use the `#[cmse_nonsecure_entry]` attribute.
340340
(active, cmse_nonsecure_entry, "1.48.0", Some(75835), None),
341341
/// Allows use of the `#[collapse_debuginfo]` attribute.
342-
(active, collapse_debuginfo, "CURRENT_RUSTC_VERSION", Some(100758), None),
342+
(active, collapse_debuginfo, "1.65.0", Some(100758), None),
343343
/// Allows `async {}` expressions in const contexts.
344344
(active, const_async_blocks, "1.53.0", Some(85368), None),
345345
// Allows limiting the evaluation steps of const expressions
@@ -385,7 +385,7 @@ declare_features! (
385385
/// Allows `#[doc(masked)]`.
386386
(active, doc_masked, "1.21.0", Some(44027), None),
387387
/// Allows `dyn* Trait` objects.
388-
(incomplete, dyn_star, "CURRENT_RUSTC_VERSION", Some(91611), None),
388+
(incomplete, dyn_star, "1.65.0", Some(91611), None),
389389
/// Allows `X..Y` patterns.
390390
(active, exclusive_range_pattern, "1.11.0", Some(37854), None),
391391
/// Allows exhaustive pattern matching on types that contain uninhabited types.
@@ -401,7 +401,7 @@ declare_features! (
401401
/// Allows using `#[repr(align(...))]` on function items
402402
(active, fn_align, "1.53.0", Some(82232), None),
403403
/// Allows generators to be cloned.
404-
(active, generator_clone, "CURRENT_RUSTC_VERSION", Some(95360), None),
404+
(active, generator_clone, "1.65.0", Some(95360), None),
405405
/// Allows defining generators.
406406
(active, generators, "1.21.0", Some(43122), None),
407407
/// Infer generic args for both consts and types.
@@ -482,7 +482,7 @@ declare_features! (
482482
/// Allows macro attributes on expressions, statements and non-inline modules.
483483
(active, proc_macro_hygiene, "1.30.0", Some(54727), None),
484484
/// Allows the use of raw-dylibs (RFC 2627).
485-
(active, raw_dylib, "CURRENT_RUSTC_VERSION", Some(58713), None),
485+
(active, raw_dylib, "1.65.0", Some(58713), None),
486486
/// Allows `&raw const $place_expr` and `&raw mut $place_expr` expressions.
487487
(active, raw_ref_op, "1.41.0", Some(64490), None),
488488
/// Allows using the `#[register_tool]` attribute.
@@ -492,7 +492,7 @@ declare_features! (
492492
/// Allows `repr(simd)` and importing the various simd intrinsics.
493493
(active, repr_simd, "1.4.0", Some(27731), None),
494494
/// Allows return-position `impl Trait` in traits.
495-
(incomplete, return_position_impl_trait_in_trait, "CURRENT_RUSTC_VERSION", Some(91611), None),
495+
(incomplete, return_position_impl_trait_in_trait, "1.65.0", Some(91611), None),
496496
/// Allows `extern "rust-cold"`.
497497
(active, rust_cold_cc, "1.63.0", Some(97544), None),
498498
/// Allows the use of SIMD types in functions declared in `extern` blocks.
@@ -526,7 +526,7 @@ declare_features! (
526526
/// not changed from prior instances of the same struct (RFC #2528)
527527
(active, type_changing_struct_update, "1.58.0", Some(86555), None),
528528
/// Enables rustc to generate code that instructs libstd to NOT ignore SIGPIPE.
529-
(active, unix_sigpipe, "CURRENT_RUSTC_VERSION", Some(97889), None),
529+
(active, unix_sigpipe, "1.65.0", Some(97889), None),
530530
/// Allows unsized fn parameters.
531531
(active, unsized_fn_params, "1.49.0", Some(48055), None),
532532
/// Allows unsized rvalues at arguments and parameters.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ declare_features! (
164164
(removed, quote, "1.33.0", Some(29601), None, None),
165165
(removed, reflect, "1.0.0", Some(27749), None, None),
166166
/// Allows using the `#[register_attr]` attribute.
167-
(removed, register_attr, "CURRENT_RUSTC_VERSION", Some(66080), None,
167+
(removed, register_attr, "1.65.0", Some(66080), None,
168168
Some("removed in favor of `#![register_tool]`")),
169169
/// Allows using the macros:
170170
/// + `__diagnostic_used`

Diff for: library/core/src/ops/range.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ pub enum Bound<T> {
677677
impl<T> Bound<T> {
678678
/// Converts from `&Bound<T>` to `Bound<&T>`.
679679
#[inline]
680-
#[stable(feature = "bound_as_ref_shared", since = "CURRENT_RUSTC_VERSION")]
680+
#[stable(feature = "bound_as_ref_shared", since = "1.65.0")]
681681
pub fn as_ref(&self) -> Bound<&T> {
682682
match *self {
683683
Included(ref x) => Included(x),

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ impl<T: ?Sized> *const T {
9898
///
9999
/// This is a bit safer than `as` because it wouldn't silently change the type if the code is
100100
/// refactored.
101-
#[stable(feature = "ptr_const_cast", since = "CURRENT_RUSTC_VERSION")]
102-
#[rustc_const_stable(feature = "ptr_const_cast", since = "CURRENT_RUSTC_VERSION")]
101+
#[stable(feature = "ptr_const_cast", since = "1.65.0")]
102+
#[rustc_const_stable(feature = "ptr_const_cast", since = "1.65.0")]
103103
pub const fn cast_mut(self) -> *mut T {
104104
self as _
105105
}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ impl<T: ?Sized> *mut T {
103103
/// coercion.
104104
///
105105
/// [`cast_mut`]: #method.cast_mut
106-
#[stable(feature = "ptr_const_cast", since = "CURRENT_RUSTC_VERSION")]
107-
#[rustc_const_stable(feature = "ptr_const_cast", since = "CURRENT_RUSTC_VERSION")]
106+
#[stable(feature = "ptr_const_cast", since = "1.65.0")]
107+
#[rustc_const_stable(feature = "ptr_const_cast", since = "1.65.0")]
108108
pub const fn cast_const(self) -> *const T {
109109
self as _
110110
}

Diff for: library/std/src/backtrace.rs

+13-13
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
//! `RUST_LIB_BACKTRACE` or `RUST_BACKTRACE` at runtime might not actually change
5959
//! how backtraces are captured.
6060
61-
#![stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
61+
#![stable(feature = "backtrace", since = "1.65.0")]
6262

6363
#[cfg(test)]
6464
mod tests;
@@ -104,29 +104,29 @@ use crate::vec::Vec;
104104
/// previous point in time. In some instances the `Backtrace` type may
105105
/// internally be empty due to configuration. For more information see
106106
/// `Backtrace::capture`.
107-
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
107+
#[stable(feature = "backtrace", since = "1.65.0")]
108108
#[must_use]
109109
pub struct Backtrace {
110110
inner: Inner,
111111
}
112112

113113
/// The current status of a backtrace, indicating whether it was captured or
114114
/// whether it is empty for some other reason.
115-
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
115+
#[stable(feature = "backtrace", since = "1.65.0")]
116116
#[non_exhaustive]
117117
#[derive(Debug, PartialEq, Eq)]
118118
pub enum BacktraceStatus {
119119
/// Capturing a backtrace is not supported, likely because it's not
120120
/// implemented for the current platform.
121-
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
121+
#[stable(feature = "backtrace", since = "1.65.0")]
122122
Unsupported,
123123
/// Capturing a backtrace has been disabled through either the
124124
/// `RUST_LIB_BACKTRACE` or `RUST_BACKTRACE` environment variables.
125-
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
125+
#[stable(feature = "backtrace", since = "1.65.0")]
126126
Disabled,
127127
/// A backtrace has been captured and the `Backtrace` should print
128128
/// reasonable information when rendered.
129-
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
129+
#[stable(feature = "backtrace", since = "1.65.0")]
130130
Captured,
131131
}
132132

@@ -173,7 +173,7 @@ enum BytesOrWide {
173173
Wide(Vec<u16>),
174174
}
175175

176-
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
176+
#[stable(feature = "backtrace", since = "1.65.0")]
177177
impl fmt::Debug for Backtrace {
178178
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
179179
let capture = match &self.inner {
@@ -289,7 +289,7 @@ impl Backtrace {
289289
///
290290
/// To forcibly capture a backtrace regardless of environment variables, use
291291
/// the `Backtrace::force_capture` function.
292-
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
292+
#[stable(feature = "backtrace", since = "1.65.0")]
293293
#[inline(never)] // want to make sure there's a frame here to remove
294294
pub fn capture() -> Backtrace {
295295
if !Backtrace::enabled() {
@@ -308,16 +308,16 @@ impl Backtrace {
308308
/// Note that capturing a backtrace can be an expensive operation on some
309309
/// platforms, so this should be used with caution in performance-sensitive
310310
/// parts of code.
311-
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
311+
#[stable(feature = "backtrace", since = "1.65.0")]
312312
#[inline(never)] // want to make sure there's a frame here to remove
313313
pub fn force_capture() -> Backtrace {
314314
Backtrace::create(Backtrace::force_capture as usize)
315315
}
316316

317317
/// Forcibly captures a disabled backtrace, regardless of environment
318318
/// variable configuration.
319-
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
320-
#[rustc_const_stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
319+
#[stable(feature = "backtrace", since = "1.65.0")]
320+
#[rustc_const_stable(feature = "backtrace", since = "1.65.0")]
321321
pub const fn disabled() -> Backtrace {
322322
Backtrace { inner: Inner::Disabled }
323323
}
@@ -361,7 +361,7 @@ impl Backtrace {
361361
/// Returns the status of this backtrace, indicating whether this backtrace
362362
/// request was unsupported, disabled, or a stack trace was actually
363363
/// captured.
364-
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
364+
#[stable(feature = "backtrace", since = "1.65.0")]
365365
#[must_use]
366366
pub fn status(&self) -> BacktraceStatus {
367367
match self.inner {
@@ -381,7 +381,7 @@ impl<'a> Backtrace {
381381
}
382382
}
383383

384-
#[stable(feature = "backtrace", since = "CURRENT_RUSTC_VERSION")]
384+
#[stable(feature = "backtrace", since = "1.65.0")]
385385
impl fmt::Display for Backtrace {
386386
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
387387
let capture = match &self.inner {

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ pub trait Read {
10451045
/// Ok(())
10461046
/// }
10471047
/// ```
1048-
#[stable(feature = "io_read_to_string", since = "CURRENT_RUSTC_VERSION")]
1048+
#[stable(feature = "io_read_to_string", since = "1.65.0")]
10491049
pub fn read_to_string<R: Read>(mut reader: R) -> Result<String> {
10501050
let mut buf = String::new();
10511051
reader.read_to_string(&mut buf)?;

Diff for: src/bootstrap/test.rs

+3
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,7 @@ impl Step for RustdocGUI {
964964
.arg("doc")
965965
.arg("--target-dir")
966966
.arg(&out_dir)
967+
.env("RUSTC_BOOTSTRAP", "1")
967968
.env("RUSTDOC", builder.rustdoc(self.compiler))
968969
.env("RUSTC", builder.rustc(self.compiler))
969970
.current_dir(path);
@@ -1699,6 +1700,8 @@ impl BookTest {
16991700

17001701
let mut rustbook_cmd = builder.tool_cmd(Tool::Rustbook);
17011702
let path = builder.src.join(&self.path);
1703+
// Books often have feature-gated example text.
1704+
rustbook_cmd.env("RUSTC_BOOTSTRAP", "1");
17021705
rustbook_cmd.env("PATH", new_path).arg("test").arg(path);
17031706
builder.add_rust_test_threads(&mut rustbook_cmd);
17041707
builder.info(&format!("Testing rustbook {}", self.path.display()));

Diff for: src/ci/channel

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly
1+
beta

0 commit comments

Comments
 (0)