mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Auto merge of #144898 - BoxyUwU:beta, r=BoxyUwU
[beta] Prepare Rust 1.90.0 r? `@ghost`
This commit is contained in:
@@ -54,7 +54,7 @@ macro_rules! declare_features {
|
||||
|
||||
/// Allows using the `amdgpu-kernel` ABI.
|
||||
(removed, abi_amdgpu_kernel, "1.77.0", Some(51575), None, 120495),
|
||||
(removed, abi_c_cmse_nonsecure_call, "CURRENT_RUSTC_VERSION", Some(81391), Some("renamed to abi_cmse_nonsecure_call"), 142146),
|
||||
(removed, abi_c_cmse_nonsecure_call, "1.90.0", Some(81391), Some("renamed to abi_cmse_nonsecure_call"), 142146),
|
||||
(removed, advanced_slice_patterns, "1.42.0", Some(62254),
|
||||
Some("merged into `#![feature(slice_patterns)]`"), 67712),
|
||||
(removed, allocator, "1.0.0", None, None),
|
||||
@@ -298,7 +298,7 @@ macro_rules! declare_features {
|
||||
// FIXME(#141617): we should have a better way to track removed library features, but we reuse
|
||||
// the infrastructure here so users still get hints. The symbols used here can be remove from
|
||||
// `symbol.rs` when that happens.
|
||||
(removed, concat_idents, "CURRENT_RUSTC_VERSION", Some(29599),
|
||||
(removed, concat_idents, "1.90.0", Some(29599),
|
||||
Some("use the `${concat(..)}` metavariable expression instead"), 142704),
|
||||
// -------------------------------------------------------------------------
|
||||
// feature-group-end: removed library features
|
||||
|
||||
@@ -354,7 +354,7 @@ pub fn internal(&self, feature: Symbol) -> bool {
|
||||
/// Allows `extern "avr-interrupt" fn()` and `extern "avr-non-blocking-interrupt" fn()`.
|
||||
(unstable, abi_avr_interrupt, "1.45.0", Some(69664)),
|
||||
/// Allows `extern "cmse-nonsecure-call" fn()`.
|
||||
(unstable, abi_cmse_nonsecure_call, "CURRENT_RUSTC_VERSION", Some(81391)),
|
||||
(unstable, abi_cmse_nonsecure_call, "1.90.0", Some(81391)),
|
||||
/// Allows `extern "custom" fn()`.
|
||||
(unstable, abi_custom, "1.89.0", Some(140829)),
|
||||
/// Allows `extern "gpu-kernel" fn()`.
|
||||
@@ -554,7 +554,7 @@ pub fn internal(&self, feature: Symbol) -> bool {
|
||||
/// to pass custom arguments to the linker.
|
||||
(unstable, link_arg_attribute, "1.76.0", Some(99427)),
|
||||
/// Allows fused `loop`/`match` for direct intraprocedural jumps.
|
||||
(incomplete, loop_match, "CURRENT_RUSTC_VERSION", Some(132306)),
|
||||
(incomplete, loop_match, "1.90.0", Some(132306)),
|
||||
/// Give access to additional metadata about declarative macro meta-variables.
|
||||
(unstable, macro_metavar_expr, "1.61.0", Some(83527)),
|
||||
/// Provides a way to concatenate identifiers using metavariable expressions.
|
||||
|
||||
@@ -1099,7 +1099,7 @@ fn from(s: &CStr) -> CString {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "c_string_eq_c_str", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "c_string_eq_c_str", since = "1.90.0")]
|
||||
impl PartialEq<CStr> for CString {
|
||||
#[inline]
|
||||
fn eq(&self, other: &CStr) -> bool {
|
||||
@@ -1112,7 +1112,7 @@ fn ne(&self, other: &CStr) -> bool {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "c_string_eq_c_str", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "c_string_eq_c_str", since = "1.90.0")]
|
||||
impl PartialEq<&CStr> for CString {
|
||||
#[inline]
|
||||
fn eq(&self, other: &&CStr) -> bool {
|
||||
@@ -1126,7 +1126,7 @@ fn ne(&self, other: &&CStr) -> bool {
|
||||
}
|
||||
|
||||
#[cfg(not(no_global_oom_handling))]
|
||||
#[stable(feature = "c_string_eq_c_str", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "c_string_eq_c_str", since = "1.90.0")]
|
||||
impl PartialEq<Cow<'_, CStr>> for CString {
|
||||
#[inline]
|
||||
fn eq(&self, other: &Cow<'_, CStr>) -> bool {
|
||||
@@ -1221,7 +1221,7 @@ pub fn into_c_string(self: Box<Self>) -> CString {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "c_string_eq_c_str", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "c_string_eq_c_str", since = "1.90.0")]
|
||||
impl PartialEq<CString> for CStr {
|
||||
#[inline]
|
||||
fn eq(&self, other: &CString) -> bool {
|
||||
@@ -1235,7 +1235,7 @@ fn ne(&self, other: &CString) -> bool {
|
||||
}
|
||||
|
||||
#[cfg(not(no_global_oom_handling))]
|
||||
#[stable(feature = "c_string_eq_c_str", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "c_string_eq_c_str", since = "1.90.0")]
|
||||
impl PartialEq<Cow<'_, Self>> for CStr {
|
||||
#[inline]
|
||||
fn eq(&self, other: &Cow<'_, Self>) -> bool {
|
||||
@@ -1249,7 +1249,7 @@ fn ne(&self, other: &Cow<'_, Self>) -> bool {
|
||||
}
|
||||
|
||||
#[cfg(not(no_global_oom_handling))]
|
||||
#[stable(feature = "c_string_eq_c_str", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "c_string_eq_c_str", since = "1.90.0")]
|
||||
impl PartialEq<CStr> for Cow<'_, CStr> {
|
||||
#[inline]
|
||||
fn eq(&self, other: &CStr) -> bool {
|
||||
@@ -1263,7 +1263,7 @@ fn ne(&self, other: &CStr) -> bool {
|
||||
}
|
||||
|
||||
#[cfg(not(no_global_oom_handling))]
|
||||
#[stable(feature = "c_string_eq_c_str", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "c_string_eq_c_str", since = "1.90.0")]
|
||||
impl PartialEq<&CStr> for Cow<'_, CStr> {
|
||||
#[inline]
|
||||
fn eq(&self, other: &&CStr) -> bool {
|
||||
@@ -1277,7 +1277,7 @@ fn ne(&self, other: &&CStr) -> bool {
|
||||
}
|
||||
|
||||
#[cfg(not(no_global_oom_handling))]
|
||||
#[stable(feature = "c_string_eq_c_str", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "c_string_eq_c_str", since = "1.90.0")]
|
||||
impl PartialEq<CString> for Cow<'_, CStr> {
|
||||
#[inline]
|
||||
fn eq(&self, other: &CString) -> bool {
|
||||
|
||||
@@ -652,7 +652,7 @@ pub fn display(&self) -> impl fmt::Display {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "c_string_eq_c_str", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "c_string_eq_c_str", since = "1.90.0")]
|
||||
impl PartialEq<&Self> for CStr {
|
||||
#[inline]
|
||||
fn eq(&self, other: &&Self) -> bool {
|
||||
|
||||
@@ -790,8 +790,8 @@ pub const fn strict_sub(self, rhs: Self) -> Self {
|
||||
#[doc = concat!("assert_eq!(1", stringify!($SelfT), ".checked_sub_signed(-2), Some(3));")]
|
||||
#[doc = concat!("assert_eq!((", stringify!($SelfT), "::MAX - 2).checked_sub_signed(-4), None);")]
|
||||
/// ```
|
||||
#[stable(feature = "mixed_integer_ops_unsigned_sub", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "mixed_integer_ops_unsigned_sub", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "mixed_integer_ops_unsigned_sub", since = "1.90.0")]
|
||||
#[rustc_const_stable(feature = "mixed_integer_ops_unsigned_sub", since = "1.90.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
@@ -1974,8 +1974,8 @@ pub const fn saturating_sub(self, rhs: Self) -> Self {
|
||||
#[doc = concat!("assert_eq!(1", stringify!($SelfT), ".saturating_sub_signed(-2), 3);")]
|
||||
#[doc = concat!("assert_eq!((", stringify!($SelfT), "::MAX - 2).saturating_sub_signed(-4), ", stringify!($SelfT), "::MAX);")]
|
||||
/// ```
|
||||
#[stable(feature = "mixed_integer_ops_unsigned_sub", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "mixed_integer_ops_unsigned_sub", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "mixed_integer_ops_unsigned_sub", since = "1.90.0")]
|
||||
#[rustc_const_stable(feature = "mixed_integer_ops_unsigned_sub", since = "1.90.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
@@ -2122,8 +2122,8 @@ pub const fn wrapping_sub(self, rhs: Self) -> Self {
|
||||
#[doc = concat!("assert_eq!(1", stringify!($SelfT), ".wrapping_sub_signed(-2), 3);")]
|
||||
#[doc = concat!("assert_eq!((", stringify!($SelfT), "::MAX - 2).wrapping_sub_signed(-4), 1);")]
|
||||
/// ```
|
||||
#[stable(feature = "mixed_integer_ops_unsigned_sub", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "mixed_integer_ops_unsigned_sub", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "mixed_integer_ops_unsigned_sub", since = "1.90.0")]
|
||||
#[rustc_const_stable(feature = "mixed_integer_ops_unsigned_sub", since = "1.90.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
@@ -2581,8 +2581,8 @@ pub const fn borrowing_sub(self, rhs: Self, borrow: bool) -> (Self, bool) {
|
||||
#[doc = concat!("assert_eq!(1", stringify!($SelfT), ".overflowing_sub_signed(-2), (3, false));")]
|
||||
#[doc = concat!("assert_eq!((", stringify!($SelfT), "::MAX - 2).overflowing_sub_signed(-4), (1, true));")]
|
||||
/// ```
|
||||
#[stable(feature = "mixed_integer_ops_unsigned_sub", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "mixed_integer_ops_unsigned_sub", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "mixed_integer_ops_unsigned_sub", since = "1.90.0")]
|
||||
#[rustc_const_stable(feature = "mixed_integer_ops_unsigned_sub", since = "1.90.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
|
||||
@@ -969,7 +969,7 @@ pub const fn swap(&mut self, a: usize, b: usize) {
|
||||
/// assert!(v == [3, 2, 1]);
|
||||
/// ```
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_const_stable(feature = "const_slice_reverse", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_slice_reverse", since = "1.90.0")]
|
||||
#[inline]
|
||||
pub const fn reverse(&mut self) {
|
||||
let half_len = self.len() / 2;
|
||||
|
||||
@@ -44,7 +44,7 @@ impl f32 {
|
||||
#[rustc_allow_incoherent_impl]
|
||||
#[must_use = "method returns a new number and does not mutate the original value"]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_const_stable(feature = "const_float_round_methods", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_float_round_methods", since = "1.90.0")]
|
||||
#[inline]
|
||||
pub const fn floor(self) -> f32 {
|
||||
core::f32::math::floor(self)
|
||||
@@ -67,7 +67,7 @@ pub const fn floor(self) -> f32 {
|
||||
#[rustc_allow_incoherent_impl]
|
||||
#[must_use = "method returns a new number and does not mutate the original value"]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_const_stable(feature = "const_float_round_methods", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_float_round_methods", since = "1.90.0")]
|
||||
#[inline]
|
||||
pub const fn ceil(self) -> f32 {
|
||||
core::f32::math::ceil(self)
|
||||
@@ -96,7 +96,7 @@ pub const fn ceil(self) -> f32 {
|
||||
#[rustc_allow_incoherent_impl]
|
||||
#[must_use = "method returns a new number and does not mutate the original value"]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_const_stable(feature = "const_float_round_methods", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_float_round_methods", since = "1.90.0")]
|
||||
#[inline]
|
||||
pub const fn round(self) -> f32 {
|
||||
core::f32::math::round(self)
|
||||
@@ -123,7 +123,7 @@ pub const fn round(self) -> f32 {
|
||||
#[rustc_allow_incoherent_impl]
|
||||
#[must_use = "method returns a new number and does not mutate the original value"]
|
||||
#[stable(feature = "round_ties_even", since = "1.77.0")]
|
||||
#[rustc_const_stable(feature = "const_float_round_methods", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_float_round_methods", since = "1.90.0")]
|
||||
#[inline]
|
||||
pub const fn round_ties_even(self) -> f32 {
|
||||
core::f32::math::round_ties_even(self)
|
||||
@@ -149,7 +149,7 @@ pub const fn round_ties_even(self) -> f32 {
|
||||
#[rustc_allow_incoherent_impl]
|
||||
#[must_use = "method returns a new number and does not mutate the original value"]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_const_stable(feature = "const_float_round_methods", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_float_round_methods", since = "1.90.0")]
|
||||
#[inline]
|
||||
pub const fn trunc(self) -> f32 {
|
||||
core::f32::math::trunc(self)
|
||||
@@ -173,7 +173,7 @@ pub const fn trunc(self) -> f32 {
|
||||
#[rustc_allow_incoherent_impl]
|
||||
#[must_use = "method returns a new number and does not mutate the original value"]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_const_stable(feature = "const_float_round_methods", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_float_round_methods", since = "1.90.0")]
|
||||
#[inline]
|
||||
pub const fn fract(self) -> f32 {
|
||||
core::f32::math::fract(self)
|
||||
|
||||
@@ -44,7 +44,7 @@ impl f64 {
|
||||
#[rustc_allow_incoherent_impl]
|
||||
#[must_use = "method returns a new number and does not mutate the original value"]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_const_stable(feature = "const_float_round_methods", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_float_round_methods", since = "1.90.0")]
|
||||
#[inline]
|
||||
pub const fn floor(self) -> f64 {
|
||||
core::f64::math::floor(self)
|
||||
@@ -67,7 +67,7 @@ pub const fn floor(self) -> f64 {
|
||||
#[rustc_allow_incoherent_impl]
|
||||
#[must_use = "method returns a new number and does not mutate the original value"]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_const_stable(feature = "const_float_round_methods", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_float_round_methods", since = "1.90.0")]
|
||||
#[inline]
|
||||
pub const fn ceil(self) -> f64 {
|
||||
core::f64::math::ceil(self)
|
||||
@@ -96,7 +96,7 @@ pub const fn ceil(self) -> f64 {
|
||||
#[rustc_allow_incoherent_impl]
|
||||
#[must_use = "method returns a new number and does not mutate the original value"]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_const_stable(feature = "const_float_round_methods", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_float_round_methods", since = "1.90.0")]
|
||||
#[inline]
|
||||
pub const fn round(self) -> f64 {
|
||||
core::f64::math::round(self)
|
||||
@@ -123,7 +123,7 @@ pub const fn round(self) -> f64 {
|
||||
#[rustc_allow_incoherent_impl]
|
||||
#[must_use = "method returns a new number and does not mutate the original value"]
|
||||
#[stable(feature = "round_ties_even", since = "1.77.0")]
|
||||
#[rustc_const_stable(feature = "const_float_round_methods", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_float_round_methods", since = "1.90.0")]
|
||||
#[inline]
|
||||
pub const fn round_ties_even(self) -> f64 {
|
||||
core::f64::math::round_ties_even(self)
|
||||
@@ -149,7 +149,7 @@ pub const fn round_ties_even(self) -> f64 {
|
||||
#[rustc_allow_incoherent_impl]
|
||||
#[must_use = "method returns a new number and does not mutate the original value"]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_const_stable(feature = "const_float_round_methods", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_float_round_methods", since = "1.90.0")]
|
||||
#[inline]
|
||||
pub const fn trunc(self) -> f64 {
|
||||
core::f64::math::trunc(self)
|
||||
@@ -173,7 +173,7 @@ pub const fn trunc(self) -> f64 {
|
||||
#[rustc_allow_incoherent_impl]
|
||||
#[must_use = "method returns a new number and does not mutate the original value"]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_const_stable(feature = "const_float_round_methods", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_float_round_methods", since = "1.90.0")]
|
||||
#[inline]
|
||||
pub const fn fract(self) -> f64 {
|
||||
core::f64::math::fract(self)
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
nightly
|
||||
beta
|
||||
|
||||
Reference in New Issue
Block a user