mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Bump version placeholders
This commit is contained in:
@@ -198,7 +198,7 @@ macro_rules! declare_features {
|
||||
/// + `impl Debug for Foo<'_>`
|
||||
(accepted, impl_header_lifetime_elision, "1.31.0", Some(15872), None),
|
||||
/// Allows referencing `Self` and projections in impl-trait.
|
||||
(accepted, impl_trait_projections, "CURRENT_RUSTC_VERSION", Some(103532), None),
|
||||
(accepted, impl_trait_projections, "1.74.0", Some(103532), None),
|
||||
/// Allows using `a..=b` and `..=b` as inclusive range syntaxes.
|
||||
(accepted, inclusive_range_syntax, "1.26.0", Some(28237), None),
|
||||
/// Allows inferring outlives requirements (RFC 2093).
|
||||
@@ -270,7 +270,7 @@ macro_rules! declare_features {
|
||||
/// Allows the use of or-patterns (e.g., `0 | 1`).
|
||||
(accepted, or_patterns, "1.53.0", Some(54883), None),
|
||||
/// Allows using `+bundle,+whole-archive` link modifiers with native libs.
|
||||
(accepted, packed_bundled_libs, "CURRENT_RUSTC_VERSION", Some(108081), None),
|
||||
(accepted, packed_bundled_libs, "1.74.0", Some(108081), None),
|
||||
/// Allows annotating functions conforming to `fn(&PanicInfo) -> !` with `#[panic_handler]`.
|
||||
/// This defines the behavior of panics.
|
||||
(accepted, panic_handler, "1.30.0", Some(44489), None),
|
||||
|
||||
@@ -400,9 +400,9 @@ pub fn set(&self, features: &mut Features, span: Span) {
|
||||
(active, const_try, "1.56.0", Some(74935), None),
|
||||
/// Allows function attribute `#[coverage(on/off)]`, to control coverage
|
||||
/// instrumentation of that function.
|
||||
(active, coverage_attribute, "CURRENT_RUSTC_VERSION", Some(84605), None),
|
||||
(active, coverage_attribute, "1.74.0", Some(84605), None),
|
||||
/// Allows users to provide classes for fenced code block using `class:classname`.
|
||||
(active, custom_code_classes_in_docs, "CURRENT_RUSTC_VERSION", Some(79483), None),
|
||||
(active, custom_code_classes_in_docs, "1.74.0", Some(79483), None),
|
||||
/// Allows non-builtin attributes in inner attribute position.
|
||||
(active, custom_inner_attributes, "1.30.0", Some(54726), None),
|
||||
/// Allows custom test frameworks with `#![test_runner]` and `#[test_case]`.
|
||||
@@ -583,7 +583,7 @@ pub fn set(&self, features: &mut Features, span: Span) {
|
||||
/// Enables rustc to generate code that instructs libstd to NOT ignore SIGPIPE.
|
||||
(active, unix_sigpipe, "1.65.0", Some(97889), None),
|
||||
/// Allows unnamed fields of struct and union type
|
||||
(incomplete, unnamed_fields, "CURRENT_RUSTC_VERSION", Some(49804), None),
|
||||
(incomplete, unnamed_fields, "1.74.0", Some(49804), None),
|
||||
/// Allows unsized fn parameters.
|
||||
(active, unsized_fn_params, "1.49.0", Some(48055), None),
|
||||
/// Allows unsized rvalues at arguments and parameters.
|
||||
|
||||
@@ -138,7 +138,7 @@ macro_rules! declare_features {
|
||||
(removed, negate_unsigned, "1.0.0", Some(29645), None, None),
|
||||
/// Allows `#[no_coverage]` on functions.
|
||||
/// The feature was renamed to `coverage_attribute` and the attribute to `#[coverage(on|off)]`
|
||||
(removed, no_coverage, "CURRENT_RUSTC_VERSION", Some(84605), None, Some("renamed to `coverage_attribute`")),
|
||||
(removed, no_coverage, "1.74.0", Some(84605), None, Some("renamed to `coverage_attribute`")),
|
||||
/// Allows `#[no_debug]`.
|
||||
(removed, no_debug, "1.43.0", Some(29721), None, Some("removed due to lack of demand")),
|
||||
/// Allows using `#[on_unimplemented(..)]` on traits.
|
||||
|
||||
@@ -2409,7 +2409,7 @@ fn from(t: T) -> Self {
|
||||
}
|
||||
|
||||
#[cfg(not(no_global_oom_handling))]
|
||||
#[stable(feature = "shared_from_array", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "shared_from_array", since = "1.74.0")]
|
||||
impl<T, const N: usize> From<[T; N]> for Rc<[T]> {
|
||||
/// Converts a [`[T; N]`](prim@array) into an `Rc<[T]>`.
|
||||
///
|
||||
|
||||
@@ -3270,7 +3270,7 @@ fn from(t: T) -> Self {
|
||||
}
|
||||
|
||||
#[cfg(not(no_global_oom_handling))]
|
||||
#[stable(feature = "shared_from_array", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "shared_from_array", since = "1.74.0")]
|
||||
impl<T, const N: usize> From<[T; N]> for Arc<[T]> {
|
||||
/// Converts a [`[T; N]`](prim@array) into an `Arc<[T]>`.
|
||||
///
|
||||
|
||||
@@ -3155,7 +3155,7 @@ fn from(s: &mut [T]) -> Vec<T> {
|
||||
}
|
||||
|
||||
#[cfg(not(no_global_oom_handling))]
|
||||
#[stable(feature = "vec_from_array_ref", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "vec_from_array_ref", since = "1.74.0")]
|
||||
impl<T: Clone, const N: usize> From<&[T; N]> for Vec<T> {
|
||||
/// Allocate a `Vec<T>` and fill it by cloning `s`'s items.
|
||||
///
|
||||
@@ -3170,7 +3170,7 @@ fn from(s: &mut [T]) -> Vec<T> {
|
||||
}
|
||||
|
||||
#[cfg(not(no_global_oom_handling))]
|
||||
#[stable(feature = "vec_from_array_ref", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "vec_from_array_ref", since = "1.74.0")]
|
||||
impl<T: Clone, const N: usize> From<&mut [T; N]> for Vec<T> {
|
||||
/// Allocate a `Vec<T>` and fill it by cloning `s`'s items.
|
||||
///
|
||||
|
||||
@@ -115,7 +115,7 @@ fn try_from(c: char) -> Result<u8, Self::Error> {
|
||||
/// failing if the code point is greater than U+FFFF.
|
||||
///
|
||||
/// This corresponds to the UCS-2 encoding, as specified in ISO/IEC 10646:2003.
|
||||
#[stable(feature = "u16_from_char", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "u16_from_char", since = "1.74.0")]
|
||||
impl TryFrom<char> for u16 {
|
||||
type Error = TryFromCharError;
|
||||
|
||||
|
||||
@@ -1051,7 +1051,7 @@ pub const fn copy<T: Copy>(x: &T) -> T {
|
||||
#[inline]
|
||||
#[must_use]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_const_stable(feature = "const_transmute_copy", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_transmute_copy", since = "1.74.0")]
|
||||
pub const unsafe fn transmute_copy<Src, Dst>(src: &Src) -> Dst {
|
||||
assert!(
|
||||
size_of::<Src>() >= size_of::<Dst>(),
|
||||
|
||||
@@ -47,7 +47,7 @@ macro_rules! unlikely {
|
||||
mod saturating;
|
||||
mod wrapping;
|
||||
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
pub use saturating::Saturating;
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub use wrapping::Wrapping;
|
||||
|
||||
@@ -31,50 +31,50 @@
|
||||
///
|
||||
/// assert_eq!(u32::MAX, (max + one).0);
|
||||
/// ```
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[derive(PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Default, Hash)]
|
||||
#[repr(transparent)]
|
||||
#[rustc_diagnostic_item = "Saturating"]
|
||||
pub struct Saturating<T>(
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")] pub T,
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")] pub T,
|
||||
);
|
||||
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
impl<T: fmt::Debug> fmt::Debug for Saturating<T> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
self.0.fmt(f)
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
impl<T: fmt::Display> fmt::Display for Saturating<T> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
self.0.fmt(f)
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
impl<T: fmt::Binary> fmt::Binary for Saturating<T> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
self.0.fmt(f)
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
impl<T: fmt::Octal> fmt::Octal for Saturating<T> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
self.0.fmt(f)
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
impl<T: fmt::LowerHex> fmt::LowerHex for Saturating<T> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
self.0.fmt(f)
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
impl<T: fmt::UpperHex> fmt::UpperHex for Saturating<T> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
self.0.fmt(f)
|
||||
@@ -210,7 +210,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
// FIXME(30524): impl Op<T> for Saturating<T>, impl OpAssign<T> for Saturating<T>
|
||||
macro_rules! saturating_impl {
|
||||
($($t:ty)*) => ($(
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
impl Add for Saturating<$t> {
|
||||
type Output = Saturating<$t>;
|
||||
|
||||
@@ -220,9 +220,9 @@ fn add(self, other: Saturating<$t>) -> Saturating<$t> {
|
||||
}
|
||||
}
|
||||
forward_ref_binop! { impl Add, add for Saturating<$t>, Saturating<$t>,
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")] }
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")] }
|
||||
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
impl AddAssign for Saturating<$t> {
|
||||
#[inline]
|
||||
fn add_assign(&mut self, other: Saturating<$t>) {
|
||||
@@ -231,7 +231,7 @@ fn add_assign(&mut self, other: Saturating<$t>) {
|
||||
}
|
||||
forward_ref_op_assign! { impl AddAssign, add_assign for Saturating<$t>, Saturating<$t> }
|
||||
|
||||
#[stable(feature = "saturating_int_assign_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_assign_impl", since = "1.74.0")]
|
||||
impl AddAssign<$t> for Saturating<$t> {
|
||||
#[inline]
|
||||
fn add_assign(&mut self, other: $t) {
|
||||
@@ -240,7 +240,7 @@ fn add_assign(&mut self, other: $t) {
|
||||
}
|
||||
forward_ref_op_assign! { impl AddAssign, add_assign for Saturating<$t>, $t }
|
||||
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
impl Sub for Saturating<$t> {
|
||||
type Output = Saturating<$t>;
|
||||
|
||||
@@ -250,9 +250,9 @@ fn sub(self, other: Saturating<$t>) -> Saturating<$t> {
|
||||
}
|
||||
}
|
||||
forward_ref_binop! { impl Sub, sub for Saturating<$t>, Saturating<$t>,
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")] }
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")] }
|
||||
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
impl SubAssign for Saturating<$t> {
|
||||
#[inline]
|
||||
fn sub_assign(&mut self, other: Saturating<$t>) {
|
||||
@@ -261,7 +261,7 @@ fn sub_assign(&mut self, other: Saturating<$t>) {
|
||||
}
|
||||
forward_ref_op_assign! { impl SubAssign, sub_assign for Saturating<$t>, Saturating<$t> }
|
||||
|
||||
#[stable(feature = "saturating_int_assign_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_assign_impl", since = "1.74.0")]
|
||||
impl SubAssign<$t> for Saturating<$t> {
|
||||
#[inline]
|
||||
fn sub_assign(&mut self, other: $t) {
|
||||
@@ -270,7 +270,7 @@ fn sub_assign(&mut self, other: $t) {
|
||||
}
|
||||
forward_ref_op_assign! { impl SubAssign, sub_assign for Saturating<$t>, $t }
|
||||
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
impl Mul for Saturating<$t> {
|
||||
type Output = Saturating<$t>;
|
||||
|
||||
@@ -280,9 +280,9 @@ fn mul(self, other: Saturating<$t>) -> Saturating<$t> {
|
||||
}
|
||||
}
|
||||
forward_ref_binop! { impl Mul, mul for Saturating<$t>, Saturating<$t>,
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")] }
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")] }
|
||||
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
impl MulAssign for Saturating<$t> {
|
||||
#[inline]
|
||||
fn mul_assign(&mut self, other: Saturating<$t>) {
|
||||
@@ -291,7 +291,7 @@ fn mul_assign(&mut self, other: Saturating<$t>) {
|
||||
}
|
||||
forward_ref_op_assign! { impl MulAssign, mul_assign for Saturating<$t>, Saturating<$t> }
|
||||
|
||||
#[stable(feature = "saturating_int_assign_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_assign_impl", since = "1.74.0")]
|
||||
impl MulAssign<$t> for Saturating<$t> {
|
||||
#[inline]
|
||||
fn mul_assign(&mut self, other: $t) {
|
||||
@@ -317,7 +317,7 @@ fn mul_assign(&mut self, other: $t) {
|
||||
///
|
||||
#[doc = concat!("let _ = Saturating(0", stringify!($t), ") / Saturating(0);")]
|
||||
/// ```
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
impl Div for Saturating<$t> {
|
||||
type Output = Saturating<$t>;
|
||||
|
||||
@@ -327,10 +327,10 @@ fn div(self, other: Saturating<$t>) -> Saturating<$t> {
|
||||
}
|
||||
}
|
||||
forward_ref_binop! { impl Div, div for Saturating<$t>, Saturating<$t>,
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")] }
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")] }
|
||||
|
||||
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
impl DivAssign for Saturating<$t> {
|
||||
#[inline]
|
||||
fn div_assign(&mut self, other: Saturating<$t>) {
|
||||
@@ -339,7 +339,7 @@ fn div_assign(&mut self, other: Saturating<$t>) {
|
||||
}
|
||||
forward_ref_op_assign! { impl DivAssign, div_assign for Saturating<$t>, Saturating<$t> }
|
||||
|
||||
#[stable(feature = "saturating_int_assign_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_assign_impl", since = "1.74.0")]
|
||||
impl DivAssign<$t> for Saturating<$t> {
|
||||
#[inline]
|
||||
fn div_assign(&mut self, other: $t) {
|
||||
@@ -348,7 +348,7 @@ fn div_assign(&mut self, other: $t) {
|
||||
}
|
||||
forward_ref_op_assign! { impl DivAssign, div_assign for Saturating<$t>, $t }
|
||||
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
impl Rem for Saturating<$t> {
|
||||
type Output = Saturating<$t>;
|
||||
|
||||
@@ -358,9 +358,9 @@ fn rem(self, other: Saturating<$t>) -> Saturating<$t> {
|
||||
}
|
||||
}
|
||||
forward_ref_binop! { impl Rem, rem for Saturating<$t>, Saturating<$t>,
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")] }
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")] }
|
||||
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
impl RemAssign for Saturating<$t> {
|
||||
#[inline]
|
||||
fn rem_assign(&mut self, other: Saturating<$t>) {
|
||||
@@ -369,7 +369,7 @@ fn rem_assign(&mut self, other: Saturating<$t>) {
|
||||
}
|
||||
forward_ref_op_assign! { impl RemAssign, rem_assign for Saturating<$t>, Saturating<$t> }
|
||||
|
||||
#[stable(feature = "saturating_int_assign_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_assign_impl", since = "1.74.0")]
|
||||
impl RemAssign<$t> for Saturating<$t> {
|
||||
#[inline]
|
||||
fn rem_assign(&mut self, other: $t) {
|
||||
@@ -378,7 +378,7 @@ fn rem_assign(&mut self, other: $t) {
|
||||
}
|
||||
forward_ref_op_assign! { impl RemAssign, rem_assign for Saturating<$t>, $t }
|
||||
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
impl Not for Saturating<$t> {
|
||||
type Output = Saturating<$t>;
|
||||
|
||||
@@ -388,9 +388,9 @@ fn not(self) -> Saturating<$t> {
|
||||
}
|
||||
}
|
||||
forward_ref_unop! { impl Not, not for Saturating<$t>,
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")] }
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")] }
|
||||
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
impl BitXor for Saturating<$t> {
|
||||
type Output = Saturating<$t>;
|
||||
|
||||
@@ -400,9 +400,9 @@ fn bitxor(self, other: Saturating<$t>) -> Saturating<$t> {
|
||||
}
|
||||
}
|
||||
forward_ref_binop! { impl BitXor, bitxor for Saturating<$t>, Saturating<$t>,
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")] }
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")] }
|
||||
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
impl BitXorAssign for Saturating<$t> {
|
||||
#[inline]
|
||||
fn bitxor_assign(&mut self, other: Saturating<$t>) {
|
||||
@@ -411,7 +411,7 @@ fn bitxor_assign(&mut self, other: Saturating<$t>) {
|
||||
}
|
||||
forward_ref_op_assign! { impl BitXorAssign, bitxor_assign for Saturating<$t>, Saturating<$t> }
|
||||
|
||||
#[stable(feature = "saturating_int_assign_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_assign_impl", since = "1.74.0")]
|
||||
impl BitXorAssign<$t> for Saturating<$t> {
|
||||
#[inline]
|
||||
fn bitxor_assign(&mut self, other: $t) {
|
||||
@@ -420,7 +420,7 @@ fn bitxor_assign(&mut self, other: $t) {
|
||||
}
|
||||
forward_ref_op_assign! { impl BitXorAssign, bitxor_assign for Saturating<$t>, $t }
|
||||
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
impl BitOr for Saturating<$t> {
|
||||
type Output = Saturating<$t>;
|
||||
|
||||
@@ -430,9 +430,9 @@ fn bitor(self, other: Saturating<$t>) -> Saturating<$t> {
|
||||
}
|
||||
}
|
||||
forward_ref_binop! { impl BitOr, bitor for Saturating<$t>, Saturating<$t>,
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")] }
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")] }
|
||||
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
impl BitOrAssign for Saturating<$t> {
|
||||
#[inline]
|
||||
fn bitor_assign(&mut self, other: Saturating<$t>) {
|
||||
@@ -441,7 +441,7 @@ fn bitor_assign(&mut self, other: Saturating<$t>) {
|
||||
}
|
||||
forward_ref_op_assign! { impl BitOrAssign, bitor_assign for Saturating<$t>, Saturating<$t> }
|
||||
|
||||
#[stable(feature = "saturating_int_assign_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_assign_impl", since = "1.74.0")]
|
||||
impl BitOrAssign<$t> for Saturating<$t> {
|
||||
#[inline]
|
||||
fn bitor_assign(&mut self, other: $t) {
|
||||
@@ -450,7 +450,7 @@ fn bitor_assign(&mut self, other: $t) {
|
||||
}
|
||||
forward_ref_op_assign! { impl BitOrAssign, bitor_assign for Saturating<$t>, $t }
|
||||
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
impl BitAnd for Saturating<$t> {
|
||||
type Output = Saturating<$t>;
|
||||
|
||||
@@ -460,9 +460,9 @@ fn bitand(self, other: Saturating<$t>) -> Saturating<$t> {
|
||||
}
|
||||
}
|
||||
forward_ref_binop! { impl BitAnd, bitand for Saturating<$t>, Saturating<$t>,
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")] }
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")] }
|
||||
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
impl BitAndAssign for Saturating<$t> {
|
||||
#[inline]
|
||||
fn bitand_assign(&mut self, other: Saturating<$t>) {
|
||||
@@ -471,7 +471,7 @@ fn bitand_assign(&mut self, other: Saturating<$t>) {
|
||||
}
|
||||
forward_ref_op_assign! { impl BitAndAssign, bitand_assign for Saturating<$t>, Saturating<$t> }
|
||||
|
||||
#[stable(feature = "saturating_int_assign_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_assign_impl", since = "1.74.0")]
|
||||
impl BitAndAssign<$t> for Saturating<$t> {
|
||||
#[inline]
|
||||
fn bitand_assign(&mut self, other: $t) {
|
||||
@@ -499,7 +499,7 @@ impl Saturating<$t> {
|
||||
///
|
||||
#[doc = concat!("assert_eq!(<Saturating<", stringify!($t), ">>::MIN, Saturating(", stringify!($t), "::MIN));")]
|
||||
/// ```
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
pub const MIN: Self = Self(<$t>::MIN);
|
||||
|
||||
/// Returns the largest value that can be represented by this integer type.
|
||||
@@ -513,7 +513,7 @@ impl Saturating<$t> {
|
||||
///
|
||||
#[doc = concat!("assert_eq!(<Saturating<", stringify!($t), ">>::MAX, Saturating(", stringify!($t), "::MAX));")]
|
||||
/// ```
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
pub const MAX: Self = Self(<$t>::MAX);
|
||||
|
||||
/// Returns the size of this integer type in bits.
|
||||
@@ -527,7 +527,7 @@ impl Saturating<$t> {
|
||||
///
|
||||
#[doc = concat!("assert_eq!(<Saturating<", stringify!($t), ">>::BITS, ", stringify!($t), "::BITS);")]
|
||||
/// ```
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
pub const BITS: u32 = <$t>::BITS;
|
||||
|
||||
/// Returns the number of ones in the binary representation of `self`.
|
||||
@@ -548,8 +548,8 @@ impl Saturating<$t> {
|
||||
#[doc(alias = "popcnt")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
pub const fn count_ones(self) -> u32 {
|
||||
self.0.count_ones()
|
||||
}
|
||||
@@ -568,8 +568,8 @@ pub const fn count_ones(self) -> u32 {
|
||||
#[inline]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
pub const fn count_zeros(self) -> u32 {
|
||||
self.0.count_zeros()
|
||||
}
|
||||
@@ -590,8 +590,8 @@ pub const fn count_zeros(self) -> u32 {
|
||||
#[inline]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
pub const fn trailing_zeros(self) -> u32 {
|
||||
self.0.trailing_zeros()
|
||||
}
|
||||
@@ -618,8 +618,8 @@ pub const fn trailing_zeros(self) -> u32 {
|
||||
#[inline]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
pub const fn rotate_left(self, n: u32) -> Self {
|
||||
Saturating(self.0.rotate_left(n))
|
||||
}
|
||||
@@ -646,8 +646,8 @@ pub const fn rotate_left(self, n: u32) -> Self {
|
||||
#[inline]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
pub const fn rotate_right(self, n: u32) -> Self {
|
||||
Saturating(self.0.rotate_right(n))
|
||||
}
|
||||
@@ -672,8 +672,8 @@ pub const fn rotate_right(self, n: u32) -> Self {
|
||||
#[inline]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
pub const fn swap_bytes(self) -> Self {
|
||||
Saturating(self.0.swap_bytes())
|
||||
}
|
||||
@@ -699,8 +699,8 @@ pub const fn swap_bytes(self) -> Self {
|
||||
/// assert_eq!(m, Saturating(-22016));
|
||||
/// ```
|
||||
#[inline]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
pub const fn reverse_bits(self) -> Self {
|
||||
@@ -729,8 +729,8 @@ pub const fn reverse_bits(self) -> Self {
|
||||
/// ```
|
||||
#[inline]
|
||||
#[must_use]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
pub const fn from_be(x: Self) -> Self {
|
||||
Saturating(<$t>::from_be(x.0))
|
||||
}
|
||||
@@ -757,8 +757,8 @@ pub const fn from_be(x: Self) -> Self {
|
||||
/// ```
|
||||
#[inline]
|
||||
#[must_use]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
pub const fn from_le(x: Self) -> Self {
|
||||
Saturating(<$t>::from_le(x.0))
|
||||
}
|
||||
@@ -784,8 +784,8 @@ pub const fn from_le(x: Self) -> Self {
|
||||
/// }
|
||||
/// ```
|
||||
#[inline]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
pub const fn to_be(self) -> Self {
|
||||
@@ -813,8 +813,8 @@ pub const fn to_be(self) -> Self {
|
||||
/// }
|
||||
/// ```
|
||||
#[inline]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
pub const fn to_le(self) -> Self {
|
||||
@@ -842,8 +842,8 @@ pub const fn to_le(self) -> Self {
|
||||
/// assert_eq!(Saturating(3i8).pow(6), Saturating(127));
|
||||
/// ```
|
||||
#[inline]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
pub const fn pow(self, exp: u32) -> Self {
|
||||
@@ -872,8 +872,8 @@ impl Saturating<$t> {
|
||||
/// assert_eq!(n.leading_zeros(), 3);
|
||||
/// ```
|
||||
#[inline]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
pub const fn leading_zeros(self) -> u32 {
|
||||
@@ -897,8 +897,8 @@ pub const fn leading_zeros(self) -> u32 {
|
||||
#[doc = concat!("assert_eq!(Saturating(", stringify!($t), "::MIN).abs(), Saturating(", stringify!($t), "::MAX));")]
|
||||
/// ```
|
||||
#[inline]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
pub const fn abs(self) -> Saturating<$t> {
|
||||
@@ -923,8 +923,8 @@ pub const fn abs(self) -> Saturating<$t> {
|
||||
#[doc = concat!("assert_eq!(Saturating(-10", stringify!($t), ").signum(), Saturating(-1));")]
|
||||
/// ```
|
||||
#[inline]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
pub const fn signum(self) -> Saturating<$t> {
|
||||
@@ -946,8 +946,8 @@ pub const fn signum(self) -> Saturating<$t> {
|
||||
/// ```
|
||||
#[must_use]
|
||||
#[inline]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
pub const fn is_positive(self) -> bool {
|
||||
self.0.is_positive()
|
||||
}
|
||||
@@ -967,14 +967,14 @@ pub const fn is_positive(self) -> bool {
|
||||
/// ```
|
||||
#[must_use]
|
||||
#[inline]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
pub const fn is_negative(self) -> bool {
|
||||
self.0.is_negative()
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
impl Neg for Saturating<$t> {
|
||||
type Output = Self;
|
||||
#[inline]
|
||||
@@ -983,7 +983,7 @@ fn neg(self) -> Self {
|
||||
}
|
||||
}
|
||||
forward_ref_unop! { impl Neg, neg for Saturating<$t>,
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")] }
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")] }
|
||||
)*)
|
||||
}
|
||||
|
||||
@@ -1006,8 +1006,8 @@ impl Saturating<$t> {
|
||||
/// assert_eq!(n.leading_zeros(), 2);
|
||||
/// ```
|
||||
#[inline]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
pub const fn leading_zeros(self) -> u32 {
|
||||
@@ -1028,8 +1028,8 @@ pub const fn leading_zeros(self) -> u32 {
|
||||
/// ```
|
||||
#[must_use]
|
||||
#[inline]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
pub const fn is_power_of_two(self) -> bool {
|
||||
self.0.is_power_of_two()
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
impl [u8] {
|
||||
/// Checks if all bytes in this slice are within the ASCII range.
|
||||
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
|
||||
#[rustc_const_stable(feature = "const_slice_is_ascii", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_slice_is_ascii", since = "1.74.0")]
|
||||
#[must_use]
|
||||
#[inline]
|
||||
pub const fn is_ascii(&self) -> bool {
|
||||
|
||||
@@ -2324,7 +2324,7 @@ pub fn parse<F: FromStr>(&self) -> Result<F, F::Err> {
|
||||
/// assert!(!non_ascii.is_ascii());
|
||||
/// ```
|
||||
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
|
||||
#[rustc_const_stable(feature = "const_slice_is_ascii", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[rustc_const_stable(feature = "const_slice_is_ascii", since = "1.74.0")]
|
||||
#[must_use]
|
||||
#[inline]
|
||||
pub const fn is_ascii(&self) -> bool {
|
||||
|
||||
@@ -179,7 +179,7 @@ pub fn new() -> OsString {
|
||||
///
|
||||
/// [conversions]: super#conversions
|
||||
#[inline]
|
||||
#[stable(feature = "os_str_bytes", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "os_str_bytes", since = "1.74.0")]
|
||||
pub unsafe fn from_encoded_bytes_unchecked(bytes: Vec<u8>) -> Self {
|
||||
OsString { inner: Buf::from_encoded_bytes_unchecked(bytes) }
|
||||
}
|
||||
@@ -217,7 +217,7 @@ pub fn as_os_str(&self) -> &OsStr {
|
||||
///
|
||||
/// [`std::ffi`]: crate::ffi
|
||||
#[inline]
|
||||
#[stable(feature = "os_str_bytes", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "os_str_bytes", since = "1.74.0")]
|
||||
pub fn into_encoded_bytes(self) -> Vec<u8> {
|
||||
self.inner.into_encoded_bytes()
|
||||
}
|
||||
@@ -768,7 +768,7 @@ pub fn new<S: AsRef<OsStr> + ?Sized>(s: &S) -> &OsStr {
|
||||
///
|
||||
/// [conversions]: super#conversions
|
||||
#[inline]
|
||||
#[stable(feature = "os_str_bytes", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "os_str_bytes", since = "1.74.0")]
|
||||
pub unsafe fn from_encoded_bytes_unchecked(bytes: &[u8]) -> &Self {
|
||||
Self::from_inner(Slice::from_encoded_bytes_unchecked(bytes))
|
||||
}
|
||||
@@ -958,7 +958,7 @@ pub fn into_os_string(self: Box<OsStr>) -> OsString {
|
||||
///
|
||||
/// [`std::ffi`]: crate::ffi
|
||||
#[inline]
|
||||
#[stable(feature = "os_str_bytes", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "os_str_bytes", since = "1.74.0")]
|
||||
pub fn as_encoded_bytes(&self) -> &[u8] {
|
||||
self.inner.as_encoded_bytes()
|
||||
}
|
||||
|
||||
@@ -536,7 +536,7 @@ pub fn new<E>(kind: ErrorKind, error: E) -> Error
|
||||
/// // errors can also be created from other errors
|
||||
/// let custom_error2 = Error::other(custom_error);
|
||||
/// ```
|
||||
#[stable(feature = "io_error_other", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "io_error_other", since = "1.74.0")]
|
||||
pub fn other<E>(error: E) -> Error
|
||||
where
|
||||
E: Into<Box<dyn error::Error + Send + Sync>>,
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#[cfg(test)]
|
||||
mod benches;
|
||||
|
||||
#[stable(feature = "saturating_int_impl", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "saturating_int_impl", since = "1.74.0")]
|
||||
pub use core::num::Saturating;
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub use core::num::Wrapping;
|
||||
|
||||
@@ -438,7 +438,7 @@ fn from(child_stdin: crate::process::ChildStdin) -> OwnedFd {
|
||||
///
|
||||
/// The provided file descriptor must point to a pipe
|
||||
/// with the `CLOEXEC` flag set.
|
||||
#[stable(feature = "child_stream_from_fd", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "child_stream_from_fd", since = "1.74.0")]
|
||||
impl From<OwnedFd> for process::ChildStdin {
|
||||
#[inline]
|
||||
fn from(fd: OwnedFd) -> process::ChildStdin {
|
||||
@@ -468,7 +468,7 @@ fn from(child_stdout: crate::process::ChildStdout) -> OwnedFd {
|
||||
///
|
||||
/// The provided file descriptor must point to a pipe
|
||||
/// with the `CLOEXEC` flag set.
|
||||
#[stable(feature = "child_stream_from_fd", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "child_stream_from_fd", since = "1.74.0")]
|
||||
impl From<OwnedFd> for process::ChildStdout {
|
||||
#[inline]
|
||||
fn from(fd: OwnedFd) -> process::ChildStdout {
|
||||
@@ -498,7 +498,7 @@ fn from(child_stderr: crate::process::ChildStderr) -> OwnedFd {
|
||||
///
|
||||
/// The provided file descriptor must point to a pipe
|
||||
/// with the `CLOEXEC` flag set.
|
||||
#[stable(feature = "child_stream_from_fd", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "child_stream_from_fd", since = "1.74.0")]
|
||||
impl From<OwnedFd> for process::ChildStderr {
|
||||
#[inline]
|
||||
fn from(fd: OwnedFd) -> process::ChildStderr {
|
||||
|
||||
@@ -110,7 +110,7 @@ fn into_raw_handle(self) -> RawHandle {
|
||||
///
|
||||
/// The provided handle must be asynchronous, as reading and
|
||||
/// writing from and to it is implemented using asynchronous APIs.
|
||||
#[stable(feature = "child_stream_from_fd", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "child_stream_from_fd", since = "1.74.0")]
|
||||
impl From<OwnedHandle> for process::ChildStdin {
|
||||
fn from(handle: OwnedHandle) -> process::ChildStdin {
|
||||
let handle = sys::handle::Handle::from_inner(handle);
|
||||
@@ -123,7 +123,7 @@ fn from(handle: OwnedHandle) -> process::ChildStdin {
|
||||
///
|
||||
/// The provided handle must be asynchronous, as reading and
|
||||
/// writing from and to it is implemented using asynchronous APIs.
|
||||
#[stable(feature = "child_stream_from_fd", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "child_stream_from_fd", since = "1.74.0")]
|
||||
impl From<OwnedHandle> for process::ChildStdout {
|
||||
fn from(handle: OwnedHandle) -> process::ChildStdout {
|
||||
let handle = sys::handle::Handle::from_inner(handle);
|
||||
@@ -136,7 +136,7 @@ fn from(handle: OwnedHandle) -> process::ChildStdout {
|
||||
///
|
||||
/// The provided handle must be asynchronous, as reading and
|
||||
/// writing from and to it is implemented using asynchronous APIs.
|
||||
#[stable(feature = "child_stream_from_fd", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "child_stream_from_fd", since = "1.74.0")]
|
||||
impl From<OwnedHandle> for process::ChildStderr {
|
||||
fn from(handle: OwnedHandle) -> process::ChildStderr {
|
||||
let handle = sys::handle::Handle::from_inner(handle);
|
||||
|
||||
@@ -1499,7 +1499,7 @@ fn from(file: fs::File) -> Stdio {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "stdio_from_stdio", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "stdio_from_stdio", since = "1.74.0")]
|
||||
impl From<io::Stdout> for Stdio {
|
||||
/// Redirect command stdout/stderr to our stdout
|
||||
///
|
||||
@@ -1530,7 +1530,7 @@ fn from(inherit: io::Stdout) -> Stdio {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "stdio_from_stdio", since = "CURRENT_RUSTC_VERSION")]
|
||||
#[stable(feature = "stdio_from_stdio", since = "1.74.0")]
|
||||
impl From<io::Stderr> for Stdio {
|
||||
/// Redirect command stdout/stderr to our stderr
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user