@@ -119,6 +119,7 @@ not_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
119119/// assert_eq!(bv1 & bv2, expected);
120120/// ```
121121#[ lang = "bitand" ]
122+ #[ doc( alias = "&" ) ]
122123#[ stable( feature = "rust1" , since = "1.0.0" ) ]
123124#[ rustc_on_unimplemented( message="no implementation for `{Self} & {RHS}`" ,
124125 label="no implementation for `{Self} & {RHS}`" ) ]
@@ -201,6 +202,7 @@ bitand_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
201202/// assert_eq!(bv1 | bv2, expected);
202203/// ```
203204#[ lang = "bitor" ]
205+ #[ doc( alias = "|" ) ]
204206#[ stable( feature = "rust1" , since = "1.0.0" ) ]
205207#[ rustc_on_unimplemented( message="no implementation for `{Self} | {RHS}`" ,
206208 label="no implementation for `{Self} | {RHS}`" ) ]
@@ -286,6 +288,7 @@ bitor_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
286288/// assert_eq!(bv1 ^ bv2, expected);
287289/// ```
288290#[ lang = "bitxor" ]
291+ #[ doc( alias = "^" ) ]
289292#[ stable( feature = "rust1" , since = "1.0.0" ) ]
290293#[ rustc_on_unimplemented( message="no implementation for `{Self} ^ {RHS}`" ,
291294 label="no implementation for `{Self} ^ {RHS}`" ) ]
@@ -372,6 +375,7 @@ bitxor_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
372375/// SpinVector { vec: vec![2, 3, 4, 0, 1] });
373376/// ```
374377#[ lang = "shl" ]
378+ #[ doc( alias = "<<" ) ]
375379#[ stable( feature = "rust1" , since = "1.0.0" ) ]
376380#[ rustc_on_unimplemented( message="no implementation for `{Self} << {RHS}`" ,
377381 label="no implementation for `{Self} << {RHS}`" ) ]
@@ -479,6 +483,7 @@ shl_impl_all! { u8 u16 u32 u64 u128 usize i8 i16 i32 i64 isize i128 }
479483/// SpinVector { vec: vec![3, 4, 0, 1, 2] });
480484/// ```
481485#[ lang = "shr" ]
486+ #[ doc( alias = ">>" ) ]
482487#[ stable( feature = "rust1" , since = "1.0.0" ) ]
483488#[ rustc_on_unimplemented( message="no implementation for `{Self} >> {RHS}`" ,
484489 label="no implementation for `{Self} >> {RHS}`" ) ]
@@ -593,6 +598,7 @@ shr_impl_all! { u8 u16 u32 u64 u128 usize i8 i16 i32 i64 i128 isize }
593598/// assert_eq!(bv, expected);
594599/// ```
595600#[ lang = "bitand_assign" ]
601+ #[ doc( alias = "&=" ) ]
596602#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
597603#[ rustc_on_unimplemented( message="no implementation for `{Self} &= {Rhs}`" ,
598604 label="no implementation for `{Self} &= {Rhs}`" ) ]
@@ -641,6 +647,7 @@ bitand_assign_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
641647/// assert_eq!(prefs, PersonalPreferences { likes_cats: true, likes_dogs: true });
642648/// ```
643649#[ lang = "bitor_assign" ]
650+ #[ doc( alias = "|=" ) ]
644651#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
645652#[ rustc_on_unimplemented( message="no implementation for `{Self} |= {Rhs}`" ,
646653 label="no implementation for `{Self} |= {Rhs}`" ) ]
@@ -689,6 +696,7 @@ bitor_assign_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
689696/// assert_eq!(personality, Personality { has_soul: true, likes_knitting: false});
690697/// ```
691698#[ lang = "bitxor_assign" ]
699+ #[ doc( alias = "^=" ) ]
692700#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
693701#[ rustc_on_unimplemented( message="no implementation for `{Self} ^= {Rhs}`" ,
694702 label="no implementation for `{Self} ^= {Rhs}`" ) ]
@@ -735,6 +743,7 @@ bitxor_assign_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
735743/// assert_eq!(scalar, Scalar(16));
736744/// ```
737745#[ lang = "shl_assign" ]
746+ #[ doc( alias = "<<=" ) ]
738747#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
739748#[ rustc_on_unimplemented( message="no implementation for `{Self} <<= {Rhs}`" ,
740749 label="no implementation for `{Self} <<= {Rhs}`" ) ]
@@ -802,6 +811,7 @@ shl_assign_impl_all! { u8 u16 u32 u64 u128 usize i8 i16 i32 i64 i128 isize }
802811/// assert_eq!(scalar, Scalar(4));
803812/// ```
804813#[ lang = "shr_assign" ]
814+ #[ doc( alias = ">>=" ) ]
805815#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
806816#[ rustc_on_unimplemented( message="no implementation for `{Self} >>= {Rhs}`" ,
807817 label="no implementation for `{Self} >>= {Rhs}`" ) ]
0 commit comments