Skip to content

Commit 55b6bd8

Browse files
committed
Auto merge of rust-lang#158888 - Mark-Simulacrum:bump-bootstrap, r=jieyouxu
Bump bootstrap to 1.98 beta https://forge.rust-lang.org/release/process.html#default-branch-bootstrap-update-and-crater-tuesday
2 parents daf2e5e + 83aeead commit 55b6bd8

32 files changed

Lines changed: 701 additions & 693 deletions

File tree

compiler/rustc_feature/src/removed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ declare_features! (
107107
/// Allows deriving traits as per `SmartPointer` specification
108108
(removed, derive_smart_pointer, "1.84.0", Some(123430), Some("replaced by `CoercePointee`"), 131284),
109109
/// Allows macros to customize macro argument matcher diagnostics.
110-
(removed, diagnostic_on_unmatch_args, "CURRENT_RUSTC_VERSION", Some(155642), Some("renamed to `diagnostic_on_unmatched_args`"), 157887),
110+
(removed, diagnostic_on_unmatch_args, "1.98.0", Some(155642), Some("renamed to `diagnostic_on_unmatched_args`"), 157887),
111111
/// Tells rustdoc to automatically generate `#[doc(cfg(...))]`.
112112
(removed, doc_auto_cfg, "1.92.0", Some(43781), Some("merged into `doc_cfg`"), 138907),
113113
/// Allows `#[doc(cfg_hide(...))]`.

compiler/rustc_feature/src/unstable.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ declare_features! (
457457
/// Allows to use the `#[cfi_encoding = ""]` attribute.
458458
(unstable, cfi_encoding, "1.71.0", Some(89653)),
459459
/// The `clflushopt` target feature on x86.
460-
(unstable, clflushopt_target_feature, "CURRENT_RUSTC_VERSION", Some(157096)),
460+
(unstable, clflushopt_target_feature, "1.98.0", Some(157096)),
461461
/// Allows `for<...>` on closures and coroutines.
462462
(unstable, closure_lifetime_binder, "1.64.0", Some(97362)),
463463
/// Allows `#[track_caller]` on closures and coroutines.
@@ -515,7 +515,7 @@ declare_features! (
515515
/// Allows giving on-move borrowck custom diagnostic messages for a type
516516
(unstable, diagnostic_on_move, "1.96.0", Some(154181)),
517517
/// Allows giving custom types diagnostic messages on type errors
518-
(unstable, diagnostic_on_type_error, "CURRENT_RUSTC_VERSION", Some(155382)),
518+
(unstable, diagnostic_on_type_error, "1.98.0", Some(155382)),
519519
/// Allows giving unresolved imports a custom diagnostic message
520520
(unstable, diagnostic_on_unknown, "1.96.0", Some(152900)),
521521
/// Allows macros to customize macro argument matcher diagnostics.
@@ -600,7 +600,7 @@ declare_features! (
600600
/// Allows associated types in inherent impls.
601601
(incomplete, inherent_associated_types, "1.52.0", Some(8995)),
602602
/// Enable #[instrument_fn] on function.
603-
(unstable, instrument_fn, "CURRENT_RUSTC_VERSION", Some(157081)),
603+
(unstable, instrument_fn, "1.98.0", Some(157081)),
604604
/// Allows using `pointer` and `reference` in intra-doc links
605605
(unstable, intra_doc_pointers, "1.51.0", Some(80896)),
606606
/// lahfsahf target feature on x86.
@@ -615,7 +615,7 @@ declare_features! (
615615
/// Target features on loongarch.
616616
(unstable, loongarch_target_feature, "1.73.0", Some(150252)),
617617
/// Allows use of loop optimization hints via attributes.
618-
(unstable, loop_hints, "CURRENT_RUSTC_VERSION", Some(156874)),
618+
(unstable, loop_hints, "1.98.0", Some(156874)),
619619
/// Allows fused `loop`/`match` for direct intraprocedural jumps.
620620
(incomplete, loop_match, "1.90.0", Some(132306)),
621621
/// Target features on m68k.
@@ -659,7 +659,7 @@ declare_features! (
659659
/// Allows `mut ref` and `mut ref mut` identifier patterns.
660660
(incomplete, mut_ref, "1.79.0", Some(123076)),
661661
/// Allows `mut(crate) field: Type` restrictions.
662-
(incomplete, mut_restriction, "CURRENT_RUSTC_VERSION", Some(105077)),
662+
(incomplete, mut_restriction, "1.98.0", Some(105077)),
663663
/// Allows using `#[naked]` on `extern "Rust"` functions.
664664
(unstable, naked_functions_rustic_abi, "1.88.0", Some(138997)),
665665
/// Allows using `#[target_feature(enable = "...")]` on `#[naked]` on functions.
@@ -720,7 +720,7 @@ declare_features! (
720720
/// Allows `extern "rust-preserve-none"`.
721721
(unstable, rust_preserve_none_cc, "1.95.0", Some(151401)),
722722
/// Allows `extern "tail"`.
723-
(unstable, rust_tail_cc, "CURRENT_RUSTC_VERSION", Some(157427)),
723+
(unstable, rust_tail_cc, "1.98.0", Some(157427)),
724724
/// Target features on s390x.
725725
(unstable, s390x_target_feature, "1.82.0", Some(150259)),
726726
/// Allows the use of the `sanitize` attribute.
@@ -733,7 +733,7 @@ declare_features! (
733733
(incomplete, specialization, "1.7.0", Some(31844)),
734734
/// Experimental "splatting" of function call arguments at the call site.
735735
/// e.g. `foo(a, b, c)` calls `#[splat] fn foo((a: A, b: B, c: C))`.
736-
(incomplete, splat, "CURRENT_RUSTC_VERSION", Some(153629)),
736+
(incomplete, splat, "1.98.0", Some(153629)),
737737
/// Allows using `#[rustc_align_static(...)]` on static items.
738738
(unstable, static_align, "1.91.0", Some(146177)),
739739
/// Allows attributes on expressions and non-item statements.
@@ -764,7 +764,7 @@ declare_features! (
764764
/// not changed from prior instances of the same struct (RFC #2528)
765765
(unstable, type_changing_struct_update, "1.58.0", Some(86555)),
766766
/// Allows using `_ = <range-or-int>` enum variants.
767-
(incomplete, unnamed_enum_variants, "CURRENT_RUSTC_VERSION", Some(156628)),
767+
(incomplete, unnamed_enum_variants, "1.98.0", Some(156628)),
768768
/// Allows using `unsafe<'a> &'a T` unsafe binder types.
769769
(incomplete, unsafe_binders, "1.85.0", Some(130516)),
770770
/// Allows declaring fields `unsafe`.
@@ -789,7 +789,7 @@ declare_features! (
789789
/// Allows use of the `xop` target-feature
790790
(unstable, xop_target_feature, "1.81.0", Some(127208)),
791791
/// Allows use of the Xtensa target-features
792-
(unstable, xtensa_target_feature, "CURRENT_RUSTC_VERSION", Some(157063)),
792+
(unstable, xtensa_target_feature, "1.98.0", Some(157063)),
793793
/// Allows `do yeet` expressions
794794
(unstable, yeet_expr, "1.62.0", Some(96373)),
795795
(unstable, yield_expr, "1.87.0", Some(43122)),

compiler/rustc_lint/src/runtime_symbols.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@ declare_lint! {
1717
///
1818
/// ### Example
1919
///
20-
#[cfg_attr(bootstrap, doc = "```rust")]
21-
#[cfg_attr(not(bootstrap), doc = "```rust,compile_fail")]
22-
#[cfg_attr(not(bootstrap), doc = "#[unsafe(no_mangle)]")]
20+
/// ```rust,compile_fail
21+
/// #[unsafe(no_mangle)]
2322
/// pub fn strlen() {} // invalid definition of the `strlen` function
24-
#[doc = "```"]
23+
/// ```
2524
///
2625
/// {{produces}}
2726
///
@@ -47,7 +46,7 @@ declare_lint! {
4746
/// ### Example
4847
///
4948
/// ```rust,no_run,standalone_crate
50-
#[cfg_attr(not(bootstrap), doc = "#[unsafe(no_mangle)]")]
49+
/// #[unsafe(no_mangle)]
5150
/// pub extern "C" fn strlen(ptr: *mut f32) -> usize { 0 }
5251
/// // suspicious definition of the `strlen` function
5352
/// // `ptr` should be `*const std::ffi::c_char`

compiler/rustc_metadata/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// tidy-alphabetical-start
22
#![allow(internal_features)]
3-
#![cfg_attr(bootstrap, feature(result_option_map_or_default))]
4-
#![cfg_attr(bootstrap, feature(strip_circumfix))]
53
#![feature(error_iter)]
64
#![feature(file_buffered)]
75
#![feature(gen_blocks)]

compiler/rustc_middle/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
// tidy-alphabetical-start
2828
#![allow(internal_features)]
2929
#![allow(rustc::direct_use_of_rustc_type_ir)]
30-
#![cfg_attr(bootstrap, feature(box_as_ptr))]
3130
#![cfg_attr(doc, feature(intra_doc_pointers))]
3231
#![feature(allocator_api)]
3332
#![feature(associated_type_defaults)]

compiler/rustc_trait_selection/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
//! This API is completely unstable and subject to change.
1212
1313
// tidy-alphabetical-start
14-
#![cfg_attr(bootstrap, feature(strip_circumfix))]
1514
#![feature(associated_type_defaults)]
1615
#![feature(default_field_values)]
1716
#![feature(deref_patterns)]

library/alloc/src/boxed.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,7 +1780,7 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
17801780
/// [`as_ptr`]: Self::as_ptr
17811781
/// [`as_non_null`]: Self::as_non_null
17821782
#[must_use]
1783-
#[stable(feature = "box_as_ptr", since = "CURRENT_RUSTC_VERSION")]
1783+
#[stable(feature = "box_as_ptr", since = "1.98.0")]
17841784
#[rustc_never_returns_null_ptr]
17851785
#[rustc_as_ptr]
17861786
#[inline]
@@ -1829,7 +1829,7 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
18291829
/// [`as_ptr`]: Self::as_ptr
18301830
/// [`as_non_null`]: Self::as_non_null
18311831
#[must_use]
1832-
#[stable(feature = "box_as_ptr", since = "CURRENT_RUSTC_VERSION")]
1832+
#[stable(feature = "box_as_ptr", since = "1.98.0")]
18331833
#[rustc_never_returns_null_ptr]
18341834
#[rustc_as_ptr]
18351835
#[inline]

library/alloc/src/string.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ impl String {
785785
/// assert!(String::from_utf16le(v).is_err());
786786
/// ```
787787
#[cfg(not(no_global_oom_handling))]
788-
#[stable(feature = "str_from_utf16_endian", since = "CURRENT_RUSTC_VERSION")]
788+
#[stable(feature = "str_from_utf16_endian", since = "1.98.0")]
789789
pub fn from_utf16le(v: &[u8]) -> Result<String, FromUtf16Error> {
790790
let (chunks, []) = v.as_chunks::<2>() else {
791791
return Err(FromUtf16Error { kind: FromUtf16ErrorKind::OddBytes });
@@ -823,7 +823,7 @@ impl String {
823823
/// String::from_utf16le_lossy(v));
824824
/// ```
825825
#[cfg(not(no_global_oom_handling))]
826-
#[stable(feature = "str_from_utf16_endian", since = "CURRENT_RUSTC_VERSION")]
826+
#[stable(feature = "str_from_utf16_endian", since = "1.98.0")]
827827
pub fn from_utf16le_lossy(v: &[u8]) -> String {
828828
match (cfg!(target_endian = "little"), unsafe { v.align_to::<u16>() }) {
829829
(true, ([], v, [])) => Self::from_utf16_lossy(v),
@@ -858,7 +858,7 @@ impl String {
858858
/// assert!(String::from_utf16be(v).is_err());
859859
/// ```
860860
#[cfg(not(no_global_oom_handling))]
861-
#[stable(feature = "str_from_utf16_endian", since = "CURRENT_RUSTC_VERSION")]
861+
#[stable(feature = "str_from_utf16_endian", since = "1.98.0")]
862862
pub fn from_utf16be(v: &[u8]) -> Result<String, FromUtf16Error> {
863863
let (chunks, []) = v.as_chunks::<2>() else {
864864
return Err(FromUtf16Error { kind: FromUtf16ErrorKind::OddBytes });
@@ -896,7 +896,7 @@ impl String {
896896
/// String::from_utf16be_lossy(v));
897897
/// ```
898898
#[cfg(not(no_global_oom_handling))]
899-
#[stable(feature = "str_from_utf16_endian", since = "CURRENT_RUSTC_VERSION")]
899+
#[stable(feature = "str_from_utf16_endian", since = "1.98.0")]
900900
pub fn from_utf16be_lossy(v: &[u8]) -> String {
901901
match (cfg!(target_endian = "big"), unsafe { v.align_to::<u16>() }) {
902902
(true, ([], v, [])) => Self::from_utf16_lossy(v),

library/core/src/bool.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ impl bool {
9393
/// // evaluated eagerly.
9494
/// assert_eq!(a, 2);
9595
/// ```
96-
#[stable(feature = "bool_to_result", since = "CURRENT_RUSTC_VERSION")]
96+
#[stable(feature = "bool_to_result", since = "1.98.0")]
9797
#[rustc_const_unstable(feature = "const_bool", issue = "151531")]
9898
#[inline]
9999
pub const fn ok_or<E: [const] Destruct>(self, err: E) -> Result<(), E> {
@@ -120,7 +120,7 @@ impl bool {
120120
/// // `ok_or_else`.
121121
/// assert_eq!(a, 1);
122122
/// ```
123-
#[stable(feature = "bool_to_result", since = "CURRENT_RUSTC_VERSION")]
123+
#[stable(feature = "bool_to_result", since = "1.98.0")]
124124
#[rustc_const_unstable(feature = "const_bool", issue = "151531")]
125125
#[inline]
126126
pub const fn ok_or_else<E, F: [const] FnOnce() -> E + [const] Destruct>(

library/core/src/fmt/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub enum Alignment {
3636
Center,
3737
}
3838

39-
#[stable(feature = "int_format_into", since = "CURRENT_RUSTC_VERSION")]
39+
#[stable(feature = "int_format_into", since = "1.98.0")]
4040
pub use num_buffer::NumBuffer;
4141
#[unstable(feature = "fmt_internals", issue = "none")]
4242
pub use num_buffer::NumBufferTrait;

0 commit comments

Comments
 (0)