@@ -119,6 +119,7 @@ not_impl! { bool usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
119
119
/// assert_eq!(bv1 & bv2, expected);
120
120
/// ```
121
121
#[ lang = "bitand" ]
122
+ #[ doc( alias = "&" ) ]
122
123
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
123
124
#[ rustc_on_unimplemented( message="no implementation for `{Self} & {RHS}`" ,
124
125
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 }
201
202
/// assert_eq!(bv1 | bv2, expected);
202
203
/// ```
203
204
#[ lang = "bitor" ]
205
+ #[ doc( alias = "|" ) ]
204
206
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
205
207
#[ rustc_on_unimplemented( message="no implementation for `{Self} | {RHS}`" ,
206
208
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 }
286
288
/// assert_eq!(bv1 ^ bv2, expected);
287
289
/// ```
288
290
#[ lang = "bitxor" ]
291
+ #[ doc( alias = "^" ) ]
289
292
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
290
293
#[ rustc_on_unimplemented( message="no implementation for `{Self} ^ {RHS}`" ,
291
294
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 }
372
375
/// SpinVector { vec: vec![2, 3, 4, 0, 1] });
373
376
/// ```
374
377
#[ lang = "shl" ]
378
+ #[ doc( alias = "<<" ) ]
375
379
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
376
380
#[ rustc_on_unimplemented( message="no implementation for `{Self} << {RHS}`" ,
377
381
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 }
479
483
/// SpinVector { vec: vec![3, 4, 0, 1, 2] });
480
484
/// ```
481
485
#[ lang = "shr" ]
486
+ #[ doc( alias = ">>" ) ]
482
487
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
483
488
#[ rustc_on_unimplemented( message="no implementation for `{Self} >> {RHS}`" ,
484
489
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 }
593
598
/// assert_eq!(bv, expected);
594
599
/// ```
595
600
#[ lang = "bitand_assign" ]
601
+ #[ doc( alias = "&=" ) ]
596
602
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
597
603
#[ rustc_on_unimplemented( message="no implementation for `{Self} &= {Rhs}`" ,
598
604
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 }
641
647
/// assert_eq!(prefs, PersonalPreferences { likes_cats: true, likes_dogs: true });
642
648
/// ```
643
649
#[ lang = "bitor_assign" ]
650
+ #[ doc( alias = "|=" ) ]
644
651
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
645
652
#[ rustc_on_unimplemented( message="no implementation for `{Self} |= {Rhs}`" ,
646
653
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 }
689
696
/// assert_eq!(personality, Personality { has_soul: true, likes_knitting: false});
690
697
/// ```
691
698
#[ lang = "bitxor_assign" ]
699
+ #[ doc( alias = "^=" ) ]
692
700
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
693
701
#[ rustc_on_unimplemented( message="no implementation for `{Self} ^= {Rhs}`" ,
694
702
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 }
735
743
/// assert_eq!(scalar, Scalar(16));
736
744
/// ```
737
745
#[ lang = "shl_assign" ]
746
+ #[ doc( alias = "<<=" ) ]
738
747
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
739
748
#[ rustc_on_unimplemented( message="no implementation for `{Self} <<= {Rhs}`" ,
740
749
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 }
802
811
/// assert_eq!(scalar, Scalar(4));
803
812
/// ```
804
813
#[ lang = "shr_assign" ]
814
+ #[ doc( alias = ">>=" ) ]
805
815
#[ stable( feature = "op_assign_traits" , since = "1.8.0" ) ]
806
816
#[ rustc_on_unimplemented( message="no implementation for `{Self} >>= {Rhs}`" ,
807
817
label="no implementation for `{Self} >>= {Rhs}`" ) ]
0 commit comments