|
32 | 32 | #[stable(feature = "rust1", since = "1.0.0")]
|
33 | 33 | #[rustc_const_unstable(feature = "const_ops", issue = "143802")]
|
34 | 34 | #[doc(alias = "!")]
|
35 |
| -#[const_trait] |
36 |
| -pub trait Not { |
| 35 | +pub const trait Not { |
37 | 36 | /// The resulting type after applying the `!` operator.
|
38 | 37 | #[stable(feature = "rust1", since = "1.0.0")]
|
39 | 38 | type Output;
|
@@ -148,8 +147,7 @@ impl const Not for ! {
|
148 | 147 | message = "no implementation for `{Self} & {Rhs}`",
|
149 | 148 | label = "no implementation for `{Self} & {Rhs}`"
|
150 | 149 | )]
|
151 |
| -#[const_trait] |
152 |
| -pub trait BitAnd<Rhs = Self> { |
| 150 | +pub const trait BitAnd<Rhs = Self> { |
153 | 151 | /// The resulting type after applying the `&` operator.
|
154 | 152 | #[stable(feature = "rust1", since = "1.0.0")]
|
155 | 153 | type Output;
|
@@ -253,8 +251,7 @@ bitand_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
|
253 | 251 | message = "no implementation for `{Self} | {Rhs}`",
|
254 | 252 | label = "no implementation for `{Self} | {Rhs}`"
|
255 | 253 | )]
|
256 |
| -#[const_trait] |
257 |
| -pub trait BitOr<Rhs = Self> { |
| 254 | +pub const trait BitOr<Rhs = Self> { |
258 | 255 | /// The resulting type after applying the `|` operator.
|
259 | 256 | #[stable(feature = "rust1", since = "1.0.0")]
|
260 | 257 | type Output;
|
@@ -358,8 +355,7 @@ bitor_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
|
358 | 355 | message = "no implementation for `{Self} ^ {Rhs}`",
|
359 | 356 | label = "no implementation for `{Self} ^ {Rhs}`"
|
360 | 357 | )]
|
361 |
| -#[const_trait] |
362 |
| -pub trait BitXor<Rhs = Self> { |
| 358 | +pub const trait BitXor<Rhs = Self> { |
363 | 359 | /// The resulting type after applying the `^` operator.
|
364 | 360 | #[stable(feature = "rust1", since = "1.0.0")]
|
365 | 361 | type Output;
|
@@ -462,8 +458,7 @@ bitxor_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
|
462 | 458 | message = "no implementation for `{Self} << {Rhs}`",
|
463 | 459 | label = "no implementation for `{Self} << {Rhs}`"
|
464 | 460 | )]
|
465 |
| -#[const_trait] |
466 |
| -pub trait Shl<Rhs = Self> { |
| 461 | +pub const trait Shl<Rhs = Self> { |
467 | 462 | /// The resulting type after applying the `<<` operator.
|
468 | 463 | #[stable(feature = "rust1", since = "1.0.0")]
|
469 | 464 | type Output;
|
@@ -585,8 +580,7 @@ shl_impl_all! { u8 u16 u32 u64 u128 usize i8 i16 i32 i64 i128 isize }
|
585 | 580 | message = "no implementation for `{Self} >> {Rhs}`",
|
586 | 581 | label = "no implementation for `{Self} >> {Rhs}`"
|
587 | 582 | )]
|
588 |
| -#[const_trait] |
589 |
| -pub trait Shr<Rhs = Self> { |
| 583 | +pub const trait Shr<Rhs = Self> { |
590 | 584 | /// The resulting type after applying the `>>` operator.
|
591 | 585 | #[stable(feature = "rust1", since = "1.0.0")]
|
592 | 586 | type Output;
|
@@ -717,8 +711,7 @@ shr_impl_all! { u8 u16 u32 u64 u128 usize i8 i16 i32 i64 i128 isize }
|
717 | 711 | message = "no implementation for `{Self} &= {Rhs}`",
|
718 | 712 | label = "no implementation for `{Self} &= {Rhs}`"
|
719 | 713 | )]
|
720 |
| -#[const_trait] |
721 |
| -pub trait BitAndAssign<Rhs = Self> { |
| 714 | +pub const trait BitAndAssign<Rhs = Self> { |
722 | 715 | /// Performs the `&=` operation.
|
723 | 716 | ///
|
724 | 717 | /// # Examples
|
@@ -793,8 +786,7 @@ bitand_assign_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
|
793 | 786 | message = "no implementation for `{Self} |= {Rhs}`",
|
794 | 787 | label = "no implementation for `{Self} |= {Rhs}`"
|
795 | 788 | )]
|
796 |
| -#[const_trait] |
797 |
| -pub trait BitOrAssign<Rhs = Self> { |
| 789 | +pub const trait BitOrAssign<Rhs = Self> { |
798 | 790 | /// Performs the `|=` operation.
|
799 | 791 | ///
|
800 | 792 | /// # Examples
|
@@ -869,8 +861,7 @@ bitor_assign_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
|
869 | 861 | message = "no implementation for `{Self} ^= {Rhs}`",
|
870 | 862 | label = "no implementation for `{Self} ^= {Rhs}`"
|
871 | 863 | )]
|
872 |
| -#[const_trait] |
873 |
| -pub trait BitXorAssign<Rhs = Self> { |
| 864 | +pub const trait BitXorAssign<Rhs = Self> { |
874 | 865 | /// Performs the `^=` operation.
|
875 | 866 | ///
|
876 | 867 | /// # Examples
|
@@ -943,8 +934,7 @@ bitxor_assign_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
|
943 | 934 | message = "no implementation for `{Self} <<= {Rhs}`",
|
944 | 935 | label = "no implementation for `{Self} <<= {Rhs}`"
|
945 | 936 | )]
|
946 |
| -#[const_trait] |
947 |
| -pub trait ShlAssign<Rhs = Self> { |
| 937 | +pub const trait ShlAssign<Rhs = Self> { |
948 | 938 | /// Performs the `<<=` operation.
|
949 | 939 | ///
|
950 | 940 | /// # Examples
|
@@ -1030,8 +1020,7 @@ shl_assign_impl_all! { u8 u16 u32 u64 u128 usize i8 i16 i32 i64 i128 isize }
|
1030 | 1020 | message = "no implementation for `{Self} >>= {Rhs}`",
|
1031 | 1021 | label = "no implementation for `{Self} >>= {Rhs}`"
|
1032 | 1022 | )]
|
1033 |
| -#[const_trait] |
1034 |
| -pub trait ShrAssign<Rhs = Self> { |
| 1023 | +pub const trait ShrAssign<Rhs = Self> { |
1035 | 1024 | /// Performs the `>>=` operation.
|
1036 | 1025 | ///
|
1037 | 1026 | /// # Examples
|
|
0 commit comments