Rollup merge of #36902 - ollie27:stab_impls, r=alexcrichton
std: Correct stability attributes for some implementations These are displayed by rustdoc so should be correct.
This commit is contained in:
@@ -2570,7 +2570,7 @@ impl fmt::Display for TryFromIntError {
|
||||
|
||||
macro_rules! same_sign_from_int_impl {
|
||||
($storage:ty, $target:ty, $($source:ty),*) => {$(
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[unstable(feature = "try_from", issue = "33417")]
|
||||
impl TryFrom<$source> for $target {
|
||||
type Err = TryFromIntError;
|
||||
|
||||
@@ -2600,7 +2600,7 @@ same_sign_from_int_impl!(i64, isize, i8, i16, i32, i64, isize);
|
||||
|
||||
macro_rules! cross_sign_from_int_impl {
|
||||
($unsigned:ty, $($signed:ty),*) => {$(
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[unstable(feature = "try_from", issue = "33417")]
|
||||
impl TryFrom<$unsigned> for $signed {
|
||||
type Err = TryFromIntError;
|
||||
|
||||
@@ -2614,7 +2614,7 @@ macro_rules! cross_sign_from_int_impl {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[unstable(feature = "try_from", issue = "33417")]
|
||||
impl TryFrom<$signed> for $unsigned {
|
||||
type Err = TryFromIntError;
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ macro_rules! sh_impl_signed {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "wrapping_impls", since = "1.7.0")]
|
||||
#[stable(feature = "op_assign_traits", since = "1.8.0")]
|
||||
impl ShlAssign<$f> for Wrapping<$t> {
|
||||
#[inline(always)]
|
||||
fn shl_assign(&mut self, other: $f) {
|
||||
@@ -50,7 +50,7 @@ macro_rules! sh_impl_signed {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "wrapping_impls", since = "1.7.0")]
|
||||
#[stable(feature = "op_assign_traits", since = "1.8.0")]
|
||||
impl ShrAssign<$f> for Wrapping<$t> {
|
||||
#[inline(always)]
|
||||
fn shr_assign(&mut self, other: $f) {
|
||||
@@ -72,7 +72,7 @@ macro_rules! sh_impl_unsigned {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "wrapping_impls", since = "1.7.0")]
|
||||
#[stable(feature = "op_assign_traits", since = "1.8.0")]
|
||||
impl ShlAssign<$f> for Wrapping<$t> {
|
||||
#[inline(always)]
|
||||
fn shl_assign(&mut self, other: $f) {
|
||||
@@ -90,7 +90,7 @@ macro_rules! sh_impl_unsigned {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "wrapping_impls", since = "1.7.0")]
|
||||
#[stable(feature = "op_assign_traits", since = "1.8.0")]
|
||||
impl ShrAssign<$f> for Wrapping<$t> {
|
||||
#[inline(always)]
|
||||
fn shr_assign(&mut self, other: $f) {
|
||||
|
||||
Reference in New Issue
Block a user